小编Jas*_*ley的帖子

如何使用LDAP在Tomcat下安装Gerrit?

我正在尝试找到在 Tomcat 下使用 LDAP 支持安装 Gerrit 的良好说明。我最好将它安装在 Windows 2008 Server 上。但是,如果不可能,我可以选择 Linux。

Gerrit 说明仅涵盖在码头下安装:

http://gerrit.googlecode.com/svn/documentation/2.1.3/install-j2ee.html#installation

如果我想在不同的环境下设置它,没有多少工作要做。

我确实找到了一些有用的链接,但没有将设置整合在一起。

http://codeslife.com/2011/06/08/install-gerrit-locally-under-windows/ http://gerrit.googlecode.com/svn/documentation/2.1.7/config-gerrit.html#_a_id_ldap_a_section_ldap http ://code.google.com/p/gerrit/issues/detail?id=292

我总是可以通过反复试验来设置它,但如果有人已经解决了这些问题,我更愿意节省时间。

windows-server-2008 tomcat ldap gerrit

11
推荐指数
1
解决办法
2万
查看次数

mod_deflate - 大多数浏览器的最佳配置

我想知道这里是否有人可以帮助我确定在 Apache 中使用 mod deflate 的最佳标准配置。基本上,mod_deflate 建议使用以下配置立即开始:

仅压缩几种类型

AddOutputFilterByType DEFLATE text/html text/plain text/xml http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

但是,仅通过阅读文档,您就可以为所有浏览器自定义它。此外,您可以为所有不同类型的 mime 类型自定义 mod_deflate。我想知道是否有人尝试过这些设置并找到了对所有浏览器都最佳的设置。

Apache 提供的另一个示例,但如果您不了解所有配置选项,请不要使用:

<Location />
# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can …
Run Code Online (Sandbox Code Playgroud)

proxy mod-proxy virtualhost mod-deflate apache-2.2

8
推荐指数
1
解决办法
1万
查看次数

为什么 snmp.exe 会使用 1.2GB 的内存?

我们特别不会将 snmp 用于任何重要的事情,至少我不知道。snmp.exe 在正常运行 285 小时后消耗 1.2GB 是否正常?好像有点过分了。为什么 snmp.exe 会消耗这么多内存?有没有办法配置 snmp.exe 所以它没有?

windows-server-2008 memory snmp

2
推荐指数
1
解决办法
1131
查看次数