cat  php-fpm.conf  看到

pid = /var/run/php-fpm/php-fpm.pid

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

php-fpm 启动:

/usr/local/php/sbin/php-fpm

php-fpm 关闭:

kill -INT `cat /var/run/php-fpm/php-fpm.pid`

php-fpm 重启:

kill -USR2 `cat /var/run/php-fpm/php-fpm.pid`

查看php-fpm进程数:

ps aux | grep -c php-fpm