Home >Backend Development >PHP Problem >How to close php service in linux

How to close php service in linux

青灯夜游
青灯夜游Original
2021-03-19 18:01:104259browse

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.

How to close php service in linux

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!

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