Home > Backend Development > PHP Tutorial > php5.4中的php-fpm命令

php5.4中的php-fpm命令

WBOY
Release: 2016-06-20 12:57:59
Original
1383 people have browsed it

PHP-FPM使用信号控制:


master进程可以理解以下信号


INT, TERM 立刻终止

QUIT 平滑终止

USR1 重新打开日志文件

USR2 平滑重载所有worker进程并重新载入配置和二进制模块


通过php-fpm.conf确认php-fpm.pid所在位置


示例:

php-fpm 启动:

/home/php/sbin/php-fpm


php-fpm 关闭:

kill -INT `cat /home/php/logs/php-fpm.pid`


php-fpm 重启:

kill -USR2 `cat /home/php/logs/php-fpm.pid`


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