查看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 重启:
kill -USR2 10436
显示的条数即php开启的进程数量
php-fpm.conf
pm.max_children = 240 相对应~~~~~~~
原文:https://www.cnblogs.com/pansidong/p/10841260.html