1,在httpd.conf中最下面添加如下配置:
Include conf/extra/httpd-mpm.conf
2,更改conf/extra/httpd-mpm.conf中最下面的配置
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
ThreadsPerChild 1000
MaxRequestsPerChild 1000
补充说明:windows下用的是winnt_module,linux下用的是prefork等module,要查看使用的是哪个module,可以在命令行输入httpd -l查看使用的moduel,相关信息可以查看文件中的注释
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14293419/viewspace-582336/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14293419/viewspace-582336/