测试php-fpm配置
/usr/local/php/sbin/php-fpm -t
/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf -t
2.启动php-fpm
/usr/local/php/sbin/php-fpm
/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf
3.关闭php-fpm
kill -INT `cat /usr/local/php/var/run/php-fpm.pid`
4.重启php-fpm
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
、
5. /usr/local/php/etc/php-fpm.conf
pm = dynamic #fpm进程运行方式,可以设置成static,读取pm.max_children
pm.max_children
#,子进程最大数
pm.start_servers = 5 #开始启动数量
pm.min_spare_servers = 2 #最小空闲数量
pm.max_spare_servers = 8 #最大空闲数量
热门评论
6666666666