小编Bro*_*ist的帖子

在 2GB RAM E6500 CPU 上优化 apache 每天 10K+ wordpress 浏览量

我在 ubuntu 上有一个带有 apache/php 的专用服务器,为我的 Wordpress 博客提供每天大约 10K+ 的综合浏览量。我在 APC 上安装了 W3TC 插件。

但是服务器时不时地停止响应或变慢,我必须重新启动 apache 才能恢复它。

这是我的配置我做错了什么?

ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
TimeOut 40
KeepAlive on
MaxKeepAliveRequests 200
KeepAliveTimeout 2
<IfModule mpm_prefork_module>
  StartServers 5
  MinSpareServers 5
  MaxSpareServers 8
  ServerLimit        80
  MaxClients         80
  MaxRequestsPerChild 1000
</IfModule>
<IfModule mpm_worker_module>
  StartServers       3
  MinSpareServers    3
  MaxSpareServers    3
  ServerLimit        80
  MaxClients         80
  MaxRequestsPerChild  1000
</IfModule>
<IfModule mpm_event_module>
  StartServers       3
  MinSpareServers    3
  MaxSpareServers    3
  ServerLimit        80
  MaxClients         80
  MaxRequestsPerChild  1000
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP} …
Run Code Online (Sandbox Code Playgroud)

scalability php5 wordpress apache-2.2

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

标签 统计

apache-2.2 ×1

php5 ×1

scalability ×1

wordpress ×1