kill -9 ps -ef | grep php | grep -v grep | awk ‘{print $2}‘
启动php-fpm:
/usr/local/webserver/php/sbin/php-fpm start
关闭php-fpm
kill -INT cat /usr/local/php/var/run/php-fpm.pid
master进程可以理解以下信号
INT, TERM 立刻终止
QUIT 平滑终止
USR1 重新打开日志文件
USR2 平滑重载所有worker进程并重新载入配置和二进制模块
php-fpm 启动:
/usr/local/php/sbin/php-fpm
php-fpm 关闭:
kill -INT cat /usr/local/php/var/run/php-fpm.pid
php-fpm 重启:
kill -USR2 cat /usr/local/php/var/run/php-fpm.pid
时间: 2024-11-11 06:09:00