Php5.4 php-fpm restart, termination operation command PHP-FPM using signal control: The master process can understand the following signal INT, the TERM immediately terminates QUIT and ends USR1. re-opens the log file USR2. smoothly reload all worker processes and reload the configuration and binary module. example: php-fpm startup: usrlocalphpsbinphp-fpmphp-fpm off the php-fpm restart and termination commands in php 5.4
PHP-FPM using signal control:
The master process can understand the following signals:
INT, TERM terminated immediately
QUIT smooth termination
USR1 re-open the log file
USR2 smoothly reloads all worker processes and reloads configuration and binary modules.
Example:
Php-fpm startup:
/Usr/local/php/sbin/php-fpm
Disable php-fpm:
Kill-INT 'cat/usr/local/php/var/run/php-fpm.pid'
Php-fpm restart:
Kill-USR2 'cat/usr/local/php/var/run/php-fpm.pid'
View the number of php-fpm processes:
Ps aux | grep-c php-fpm