当apache2正在运行时,SSH连接断开

我的客户端运行2台在SUSE Linux 11 SP2上运行的服务器。 两台服务器都configuration为主动 – 被动HA服务器,因此完全相同。 Bacula也安装在两台服务器上用于备份,为了方便用户查看备份状态,我在两台服务器上都configuration了bacula-web。 我使用apache2服务bacula-web,一切运行良好。 当我必须configuration一台服务器(服务器1)作为clamAV服务器时,问题就开始发生。 我为apache2创build了一个虚拟主机来为clamAV cdiff文件提供服务。 重新启动apache2后,大约20分钟左右,我的SSH连接(PuTTY)将被断开(networking错误:软件导致连接中止)。 尝试重新启动SSH会话将在input密码后立即失败。 会话将挂起并断开连接。

我不知道是什么原因导致了这种行为,但只有在apache2正在运行的情况下才能启动clamAV主机。 如果apache2只运行bacula-web报告页面,一切都很好。 更糟糕的是,它正在影响同一networking中的其他服务器。

总结一下:

  • apache2在服务器1和2上运行
  • 服务器1上的apache2提供bacula-web和clamAV
  • 服务器2上的apache2只提供bacula-web
  • 当apache2在服务器1上运行时,同一networking上的所有服务器都不能被访问(服务器2,并且在这篇文章中没有描述另一个服务器)
  • closures服务器1上的apache2后,连接将立即恢复正常

我试图在不同于80的端口上运行apache,而且我不会遇到连接问题。 下面列出了Apache相关的configuration/模块。 让我知道是否有任何更多的信息需要。 谢谢。

/etc/apache2/vhosts.d#cat vhost.conf

Servername xxxx DocumentRoot /srv/www/htdocs/clamav ErrorLog /var/log/apache2/clamav-error_log CustomLog /var/log/apache2/clamav-access_log combined HostnameLookups Off UseCanonicalName Off ServerSignature On <Directory "/srv/www/htdocs/clamav"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html Include /etc/apache2/mod_userdir.conf </IfModule> <Directory "/srv/www/vhosts/dummy-host.example.com"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> 

apache2ctl -M

 Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_default_module (shared) authz_user_module (shared) authn_dbm_module (shared) autoindex_module (shared) cgi_module (shared) dir_module (shared) env_module (shared) expires_module (shared) include_module (shared) log_config_module (shared) mime_module (shared) negotiation_module (shared) setenvif_module (shared) ssl_module (shared) suexec_module (shared) userdir_module (shared) php5_module (shared) Syntax OK 

/ etc / sysconfig#grep -v ^#apache2

 DOC_SERVER="no" APACHE_CONF_INCLUDE_FILES="" APACHE_CONF_INCLUDE_DIRS="" APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5" APACHE_SERVER_FLAGS="" APACHE_HTTPD_CONF="" APACHE_MPM="" APACHE_SERVERADMIN="" APACHE_SERVERNAME="" APACHE_START_TIMEOUT="2" APACHE_SERVERSIGNATURE="on" APACHE_LOGLEVEL="warn" APACHE_ACCESS_LOG="/var/log/apache2/access_log combined" APACHE_USE_CANONICAL_NAME="off" APACHE_SERVERTOKENS="OS" APACHE_EXTENDED_STATUS="off"