[root@es /]# ps aux | grep php-fpm
root 2671 0.0 0.0 103252 848 pts/0 S+ 14:37 0:00 grep php-fpm
查看php-fpm是否启动
php-fpm 启动:
/usr/local/php/sbin/php-fpm
cat /usr/local/php/etc/php-fpm.conf
看到
pid = /var/run/php-fpm.pid
php-fpm 关闭:
kill -INT `cat /var/run/php-fpm.pid`
php-fpm 重启:
kill -USR2 `cat /var/run/php-fpm.pid`
查看php-fpm进程数:
ps aux | grep -c php-fpm