【问题标题】:Apache on WampServer Keeps CrashingWampServer 上的 Apache 不断崩溃
【发布时间】:2014-01-04 04:48:17
【问题描述】:

我运行一个中等流量的网站,它似乎一直在崩溃,我必须重新启动,因为它要么无法加载,要么 cloudflare 显示 520 错误。

无论如何我已经搜索了这个错误,他们说要启用 KeepAlive,但我在 httpd.conf 中没有看到该选项。

我的服务器信息(是的,我知道 linux 很有用,但我也在我的服务器计算机上使用许多 Windows 软件)。我正在运行与 wamp 服务器集成的 apache。

8GB RAM 和 i7-2600,因此它是一个足够快的服务器。

带宽也足够快。

这是错误日志,如果您需要更多信息,请告诉我,谢谢!

[Fri Jan 03 16:02:06.265860 2014] [mpm_winnt:notice] [pid 35404:tid 452] AH00456: Server built: Feb 22 2013 22:08:37
[Fri Jan 03 16:02:06.265860 2014] [core:notice] [pid 35404:tid 452] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Fri Jan 03 16:02:06.266861 2014] [mpm_winnt:notice] [pid 35404:tid 452] AH00418: Parent: Created child process 10260
[Fri Jan 03 16:02:06.660883 2014] [mpm_winnt:notice] [pid 10260:tid 332] AH00354: Child: Starting 150 worker threads.
[Fri Jan 03 19:13:50.867886 2014] [mpm_winnt:notice] [pid 35404:tid 452] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Jan 03 19:13:52.868000 2014] [mpm_winnt:notice] [pid 10260:tid 332] AH00364: Child: All worker threads have exited.
[Fri Jan 03 19:13:52.915003 2014] [mpm_winnt:notice] [pid 35404:tid 452] AH00430: Parent: Child process 10260 exited successfully.
[Fri Jan 03 19:13:55.018123 2014] [mpm_winnt:notice] [pid 32116:tid 452] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Fri Jan 03 19:13:55.018123 2014] [mpm_winnt:notice] [pid 32116:tid 452] AH00456: Server built: Feb 22 2013 22:08:37
[Fri Jan 03 19:13:55.018123 2014] [core:notice] [pid 32116:tid 452] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Fri Jan 03 19:13:55.020124 2014] [mpm_winnt:notice] [pid 32116:tid 452] AH00418: Parent: Created child process 9012
[Fri Jan 03 19:13:55.355143 2014] [mpm_winnt:notice] [pid 9012:tid 328] AH00354: Child: Starting 150 worker threads.
[Fri Jan 03 20:41:50.496864 2014] [mpm_winnt:notice] [pid 32116:tid 452] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Jan 03 20:41:54.203076 2014] [mpm_winnt:notice] [pid 9012:tid 328] AH00364: Child: All worker threads have exited.
[Fri Jan 03 20:41:54.238078 2014] [mpm_winnt:notice] [pid 32116:tid 452] AH00430: Parent: Child process 9012 exited successfully.
[Fri Jan 03 20:41:55.553153 2014] [mpm_winnt:notice] [pid 9676:tid 452] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Fri Jan 03 20:41:55.554153 2014] [mpm_winnt:notice] [pid 9676:tid 452] AH00456: Server built: Feb 22 2013 22:08:37
[Fri Jan 03 20:41:55.554153 2014] [core:notice] [pid 9676:tid 452] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Fri Jan 03 20:41:55.555153 2014] [mpm_winnt:notice] [pid 9676:tid 452] AH00418: Parent: Created child process 1272
[Fri Jan 03 20:41:55.885172 2014] [mpm_winnt:notice] [pid 1272:tid 328] AH00354: Child: Starting 150 worker threads.

【问题讨论】:

标签: apache wampserver httpd.conf


【解决方案1】:

您可以在httpd.conf 文件中尝试这些参数。它在过去对这种情况有所帮助,并且可能对您有所帮助。

# AcceptFilter: Windows, none uses accept () instead of AcceptEx ()
# And do not recycle sockets between connections. This is useful
# Network interfaces for which the pilot is defective, and for
# Some network providers like vpn pilots or filters
# Anti-spam, anti-virus or anti-spyware.
AcceptFilter http none
AcceptFilter https none

【讨论】:

  • 您好先生,谢谢您的回复!好的,所以我已经搜索了我的 httpd.conf,但是当我尝试搜索它时,我没有在任何地方看到 AcceptFilter。你想让我把它添加到任何地方吗?
  • 是的,默认httpd.conf中不存在。所以添加它,但要确保它不在任何特定的现有部分中。也许最好将它添加到文件的底部。
  • @RiggsFolly 如果我关闭过滤器,是否会使我的 SSL 易受攻击?安全吗?
最近更新 更多