Home > Article > Operation and Maintenance > How to close php service under linux
How to close the php service under Linux: Execute the [kill -INT `cat /usr/local/php/var/run/php-fpm .pid`] command to close the php service.
Linux: PHP 5.3.3 or above version of php-fpm restart
(Recommended learning tutorial: java course)
INT, TERM: Terminate immediately
QUIT: Terminate smoothly
USR1: Reopen the log file
USR2: Smoothly reload all worker processes And reload the configuration and binary modules
1. php-fpm close:
kill -INT ` cat /usr/local/php/var/run/php-fpm .pid`
2. php-fpm restart:
kill -USR2 ` cat /usr/local/php/var/run/php-fpm .pid`
3. View php- Number of fpm processes:
ps aux | grep -c php-fpm
Related recommendations: php training
The above is the detailed content of How to close php service under linux. For more information, please follow other related articles on the PHP Chinese website!