Since php5.3.3, the php source code contains php-fpm. You do not need to install php-fpm by patching it separately, add the parameter-enable-fpm to configure when installing the source code.
Therefore, the method for starting, disabling, and reloading is different from that before. signal control is required:
The php-fpm master process can understand the signal:
SIGINT, SIGTERM immediately terminate SIGQUIT smoothly terminate SIGUSR1 re-open the log file SIGUSR2 smoothly Reload all worker processes and re-load the configuration and binary Module
For example, disable php-fpm.
Kill-SIGINT 'cat/usr/local/php/var/run/php-fpm.pid'
Php-fpm restart
Kill-SIGUSR2 'cat/usr/local/php/var/run/php-fpm.pid'
Note:/usr/local/php/var/run/php-fpm.pid refers to the file that stores the master process number, which is the default address and can be modified in the configuration, in addition, you can use the ps command to find the master process number, and then use the kill signal process number method.