Warning: curl_exec() has been disabled for security reasons in /pub/host/sunboyu/sunboyu/www/wp-includes/http.php on line 1022
我的apache配置-mpm » Blog Archive 一个程序猿 孙小一,孙小二,PHP,MYSQL,LINUX,APACHE,原创技术,扯淡

我的apache配置-mpm

作者 : admin 于 2009-05-28 23:13:29 标签: , ,
2009
05-28
  1. <ifmodule mpm_prefork_module>
  2.     StartServers              2
  3.     MinSpareServers         5
  4.     MaxSpareServers        10
  5.     MaxClients                 128
  6.     MaxRequestsPerChild    5000
  7. </ifmodule>

这个配置基本支撑http的访问,几个博客,一个论坛,还有一个哥们很大的静态并发。

以前使用的是work方式,因为不太了解,经常造成进程崩溃,又切换到了prefork方式,这次调整的比较稳定了。

评论列表

  1. 独自流浪 Says:

    如何切换两种MPM模式,我看到httpd.conf里面两种模式都没有被注释掉

    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 4000

    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0

发表评论




XHTML:你可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(若看不到验证码,请重新加载页面。)