Home  >  Article  >  Operation and Maintenance  >  How to close php service under linux

How to close php service under linux

王林
王林Original
2020-11-06 14:15:104455browse

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.

How to close php service under linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn