php-fpm smooth restart on off

不言
Release: 2023-03-24 18:14:02
Original
5058 people have browsed it

This article mainly introduces php-fpm smooth restart on and off in detail. Interested friends can refer to it

First look at the following commands

INT, TERM 立刻终止
QUIT 平滑终止
USR1 重新打开日志文件
USR2 平滑重载所有worker进程并重新载入配置和二进制模块
Copy after login

examples

1. pkill php-fpm 强制关闭2. kill -INT `cat /usr/local/php/var/run/php-fpm.pid` 3. /usr/local/php/sbin/php-fpm 启动 
4. kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid` 平滑重启5. ps aux | grep -c php-fpm 查看php-fpm进程数:6. ps aux |grep php-fpm 查看php-fpm的master进程号
Copy after login

cat /usr/local/php/var/run/php-fpm.pid to view the php-fpm process number, you can use ps aux |grep php-fpm to view it
then use

kill -USR2 [pid]
Copy after login

Related recommendations:

php-fpm Static Dynamic


##

The above is the detailed content of php-fpm smooth restart on off. 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