View PHP-FPM Related Information
See if PHP-FPM is open: Ps-ef|grep php
View PHP-FPM's location: Whereis php-fpm
View the number of PHP-FPM processes: PS aux | Grep-c PHP-FPM
View running Memory:/usr/bin/php-i|grep MEM
View php-fpm.conf Configuration
Cat/usr/local/php/etc/php-fpm.conf
See Pid=/var/run/php-fpm/php-fpm.pid
Turn php-fpm on, restart, and close the first way common commands
Open PHP-FPM:PHP-FPM
Restart php-fpm:/etc/init.d/php-fpm restart or kill-usr2 ' cat/var/run/php-fpm/php-fpm.pid ' #如果/etc/init.d/no php-fpm file You can use the second method
PHP-FPM off: Kill-int ' Cat/var/run/php-fpm/php-fpm.pid '
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
The second method uses PHP-FPM to control the php-cgi fastcgi process/usr/local/php/sbin/php-fpm {start|stop|quit|restart|reload|logrotate} #/usr/ The path where the LOCAL/PHP/SBIN/PHP-FPM
--start starting PHP's fastcgi process
--stop forcing the fastcgi process to terminate PHP
--quit smooth termination of PHP fastcgi process
--restart restarting PHP's fastcgi process
--reload re-load PHP php.ini
--logrotate re-enabling the log file
Kill process Mode off PHP-FPM
Kill to slay a process: kill-9 PID
Killall kills a class of processes: killall-9 php-fpm[service Name]
Pkill kills a class of processes: Pkill php-fpm[service Name]
Liunx PHP-FPM