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

How to close php service under linux

王林
Release: 2020-11-06 14:15:10
Original
4628 people have browsed it

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`
Copy after login

2. php-fpm restart:

kill   -USR2 ` cat  /usr/local/php/var/run/php-fpm .pid`
Copy after login

3. View php- Number of fpm processes:

ps   aux |  grep  -c php-fpm
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template