php-fpm 重启
查看php-fpm进程数:
ps aux | grep -c php-fpm
[root@ssy106c14c190c69 etc]# ps -ef | grep php-fpm --- 查看php-fpm 进程数量
root 10436 1 3 21:33 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
www 10437 10436 0 21:33 ? 00:00:00 php-fpm: pool www
www 10438 10436 0 21:33 ? 00:00:00 php-fpm: pool www
www 10439 10436 0 21:33 ? 00:00:00 php-fpm: pool www
php-fpm 重启:
sudo kill -USR2 10436
显示的条数即php开启的进程数量
php-fpm.conf
pm.max_children = 240 相对应~~~~~~~
pm.max_spare_servers = 120 max_children 必须比max_spare_servers 大,否则,php重启会出问题!
相信坚持的力量,日复一日的习惯.