大佬教程收集整理的这篇文章主要介绍了nginx php-fpm调优,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已在/etc/rc.local里添加了 ulimit -SHn 51200
竟然没生效
解决: vi
文件最后加上 *
2、 问题: 用命令
netstat -np | grep 127.0.0.1:9000 |wc -l
发现只有100多
解决: 根据服务器内存情况,可以把php FastCGI子进程数调到100或以上,在4G内存的服务器上200就可以 服务器上内存为8G,我把php FastCGI子进程数调整到300
vi /usr/local/webserver/php/etc/php-fpm.conf 将max_children修改为300
重启服务器,这样,网站打开速度快,而且稳定了。
php-FPM via FastCGI,the following tips may be useful to you : )php-FPM管 理FastCGI,这些技巧也许对您有用:)php’s modules as less as possible,the simple the best (fast);php模块,最简单是最好(快)的php FastCGI child number to 100 and even more. Sometime,200 is OK! ( On 4GB memory server);php FastCGI子进程数调到100或以上,在4G内存的服务器上200就可以php FastCGI,and put into /dev/shm on Linux;php-fpm.cnf 里设置
以上是大佬教程为你收集整理的nginx php-fpm调优全部内容,希望文章能够帮你解决nginx php-fpm调优所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。