Home > Article > Backend Development > How to close php service in linux
How to close the php service in Linux: First open the terminal, and then execute "kill -INT cat /usr/local/php/var/run/php-fpm .pid" to close the service.
The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, php5.6 version, DELL G3 computer
Close under linux php service
1. php-fpm shutdown:
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. Check the number of php-fpm processes:
ps aux | grep -c php-fpm
Description:
INT, TERM: terminate immediately
QUIT: terminate smoothly
USR1: Reopen the log file
USR2: Gracefully reload all worker processes and reload configuration and binary modules
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to close php service in linux. For more information, please follow other related articles on the PHP Chinese website!