How to close php service in linux

青灯夜游
Release: 2023-03-08 21:08:02
Original
4221 people have browsed it

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

2. php-fpm restart:

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

3. Check the number of php-fpm processes:

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

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!

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