This article mainly introduces php-fpm smooth restart on and off in detail. Interested friends can refer to it
First look at the following commands
INT, TERM 立刻终止 QUIT 平滑终止 USR1 重新打开日志文件 USR2 平滑重载所有worker进程并重新载入配置和二进制模块
examples
1. pkill php-fpm 强制关闭2. kill -INT `cat /usr/local/php/var/run/php-fpm.pid` 3. /usr/local/php/sbin/php-fpm 启动 4. kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid` 平滑重启5. ps aux | grep -c php-fpm 查看php-fpm进程数:6. ps aux |grep php-fpm 查看php-fpm的master进程号
cat /usr/local/php/var/run/php-fpm.pid to view the php-fpm process number, you can use ps aux |grep php-fpm to view it
then use
kill -USR2 [pid]
Related recommendations:
The above is the detailed content of php-fpm smooth restart on off. For more information, please follow other related articles on the PHP Chinese website!