查看php-fpm進程數:
ps aux | grep -c php-fpmphp
[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 wwwphp-fpm
php-fpm 重啓:
kill -USR2 10436進程
顯示的條數即php開啓的進程數量ast
php-fpm.conf grep
pm.max_children = 240 相對應~~~~~~~fpm