Home >Backend Development >PHP Tutorial >php 5.4中php-fpm 的重新启动、终止操作命令

php 5.4中php-fpm 的重新启动、终止操作命令

WBOY
WBOYOriginal
2016-06-13 12:03:081021browse

php 5.4中php-fpm 的重启、终止操作命令
PHP-FPM使用信号控制:

master进程可以理解以下信号

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

示例:

php-fpm 启动:

/usr/local/php/sbin/php-fpm

php-fpm 关闭:
kill -INT `cat /usr/local/php/var/run/php-fpm.pid`
php-fpm 重启:
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`

查看php-fpm进程数:

ps aux | grep -c php-fpm

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