<title>php5.4 php-fpm Restart Tutorial-PHP</title>
Home Page
- Web Development
- Android
- J2ee
- Php
- Linux/unix
- Mysql
- C#
- More...
Current Location: Code fan»php»php5.4 php-fpm Restart tutorial
php5.4 php-fpm Restart Tutorial
Www.MyException.Cn, Netizens share in: 2014-06-30 Views: 12 times
php5.4 's php-fpm Restart tutorial
PHP 5.3.3 After the source code has been embedded in the PHP-FPM, not like the previous PHP version of the same special patching, just need to add the compilation parameters in the Configure.
The compilation parameters about PHP-FPM have –enable-fpm–with-fpm-user=www–with-fpm-group=www–with-libevent-dir=libevent locations.
However, after PHP 5.3.3, PHP-FPM no longer supports commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload), which PHP-FPM previously had, and requires the use of signal control:
The master process can understand the following signals
INT, term immediately terminates
QUIT Smooth Termination
USR1 Reopen log file
USR2 smoothly overloads all worker processes and reloads the configuration and binary modules
Examples are as follows:
PHP-FPM off:
Kill-int ' Cat/usr/local/php/var/run/php-fpm.pid '
PHP-FPM Restart:
KILL-USR2 ' Cat/usr/local/php/var/run/php-fpm.pid '
In fact, that part of the cat is the PHP-FPM process number, which is probably 5.4 of my problem. Without the use of php-fpm.pid, there is no such file. can be used PS aux | grep PHP-FPM, using the process number of the first process. I tried it.
Original title: php5.4 's php-fpm restart tutorial
Original address: http://www.abcde.cn/info/show-24-125-1.html