PHP 5.3.3 Source 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, php-fpm in PHP 5.3.3 no longer supports commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload) that php-fpm previously had, and signal control is required:
The master process can understand the following signals:
SIGINT, SIGTERM immediately terminate.
Sigquit Smooth Termination
SIGUSR1 Reopen log file
SIGUSR2 smoothly overloads all worker processes and reloads the configuration and binary modules
Example:
PHP-FPM off:
Kill-sigint ' Cat/usr/local/php/var/run/php-fpm.pid '
PHP-FPM Restart:
KILL-SIGUSR2 ' Cat/usr/local/php/var/run/php-fpm.pid '
To view the number of PHP-FPM processes:
PS aux | Grep-c PHP-FPM
Netstat-anpo | grep "php-cgi" | Wc-l
Netstat-anop | grep "PHP-FPM" | Wc-l