服务器达到MaxClients设置,请考虑提高MaxClients设置

时间:2014-01-13 22:44:49

标签: apache httpd.conf

我的httpd服务器在大约2-3个小时内崩溃了。 我今天通过whm / easyapache重新安装apache服务器3-4次;但无法解决。 (我可以重新启动,现在修复)

我在/ etc / httpd / logs / error_log文件中遇到了一些错误(摘要如下)。你有什么建议给我?它每2-3小时仍然被压碎:/

  • 吨'文件不存在'错误。
  • '[warn](101)网络无法访问:连接到[::]上的侦听器:443'错误
  • '脚本在返回标题错误之前超时
  • 服务器达到了MaxClients设置,请考虑提高MaxClients设置
  • notice]抓住了SIGTERM,关闭了
  • 某些'请求中的无效方法\ x80g \ x01 \ x03 \ x01'错误。
  • [警告] RSA服务器证书CommonName(CN)`www.xx.com'与服务器名称不匹配!?
  • [通知]启用suEXEC机制(包装器:/ usr / local / apache / bin / suexec)
  • [notice]配置了Apache / 2.7.7(http://www.modsecurity.org/)的ModSecurity。
  • [通知] ModSecurity:APR编译版本=“1.4.8”; loading version =“1.4.8”
  • [通知] ModSecurity:PCRE编译版本=“8.21”; loading version =“8.21 2011-12-12”
  • [notice] ModSecurity:LIBXML编译版本=“2.9.0”

HTTPD.CONF:

包含“/usr/local/apache/conf/includes/pre_main_global.conf”

包含“/usr/local/apache/conf/includes/pre_main_2.conf”

LoadModule bw_module /usr/local/apache/modules/mod_bw.so

LoadModule frontpage_module modules / mod_frontpage.so

LoadModule bwlimited_module modules / mod_bwlimited.so

LoadModule auth_passthrough_module modules / mod_auth_passthrough.so

包含“/usr/local/apache/conf/mod_bandwidth.conf”

包括“/usr/local/apache/conf/php.conf”

包括“/usr/local/apache/conf/modsec2.conf”

包含“/usr/local/apache/conf/includes/errordocument.conf”

ErrorLog“logs / error_log”

DefaultType text / plain

ScriptAliasMatch ^ /?controlpanel /?$ /usr/local/cpanel/cgi-sys/redirect.cgi

ScriptAliasMatch ^ /?cpanel /?$ /usr/local/cpanel/cgi-sys/redirect.cgi

ScriptAliasMatch ^ /?kpanel /?$ /usr/local/cpanel/cgi-sys/redirect.cgi

ScriptAliasMatch ^ /?securecontrolpanel /?$ /usr/local/cpanel/cgi-sys/sredirect.c $

ScriptAliasMatch ^ /?securecpanel /?$ /usr/local/cpanel/cgi-sys/sredirect.cgi

ScriptAliasMatch ^ /?securewhm /?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi

ScriptAliasMatch ^ /?webmail /?$ /usr/local/cpanel/cgi-sys/wredirect.cgi

ScriptAliasMatch ^ /?whm /?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi

Alias / bandwidth / usr / local / bandmin / htdocs /

Alias / img-sys / usr / local / cpanel / img-sys /

Alias / java-sys / usr / local / cpanel / java-sys /

Alias / mailman / archives / usr / local / cpanel / 3rdparty / mailman / archives / public /

Alias / pipermail / usr / local / cpanel / 3rdparty / mailman / archives / public /

Alias / sys_cpanel / usr / local / cpanel / sys_cpanel /

ScriptAlias / cgi-sys / usr / local / cpanel / cgi-sys /

ScriptAlias / mailman / usr / local / cpanel / 3rdparty / mailman / cgi-bin /

ScriptAlias / scgi-bin / usr / local / cpanel / cgi-sys / scgiwrap


sysctl.conf的

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

net.ipv4.tcp_syncookies = 1

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 68719476736

kernel.shmall = 4294967296

limits.conf中

# /etc/security/limits.conf
#Each line describes a limit for a user in the form:
#<domain>        <type>  <item>  <value>#Where:
#<domain> can be: #        - an user name #        - a group name, with @group syntax #        - the wildcard *, for default entry #        - the wildcard %, can be also used with %group syntax, #                 for maxlogin limit #<type> can have the two values: #        - "soft" for enforcing the soft limits #        - "hard" for enforcing hard limits
等等......这里很难写:S

0 个答案:

没有答案