phpstudy 性能调优

前提:phpstudy 在使用fcig的模式下。

1.打开D:\phpStudy\Apache\conf\httpd.conf文件。phpstudy-->其他选项菜单-->打开配置文件-->httpd.conf

2.搜索关键字:Server-pool management ,去掉Include conf/extra/httpd-php-fcgid53.conf 前面的#

3.打开配置文件:httpd-php-fcgid53.conf 修改

(1)FcgidMaxRequestsPerProcess 值为2000

(2)FcgidInitialEnv PHP_FCGI_MAX_REQUESTS值为2000

4.重启phpstudy (Apache2a) ,重新访问网站检查网站是否可以正常运行。

参考链接:

http://blog.sina.com.cn/s/blog_141e777cd0102xg4l.html

https://blog.csdn.net/xuejiazhi/article/details/9022961

案例没有亲测过,不知是否可行。

猜你喜欢

转载自my.oschina.net/qimhkaiyuan/blog/1812114