PHP-FPM Restart, abort Operation command in PHP 5.4:
View php Run Directory command: which PHP
/usr/bin/php
To view the number of PHP-FPM processes:
PS aux | Grep-c PHP-FPM
View running Memory
/usr/bin/php-i|grep Mem
Restart PHP-FPM
/ETC/INIT.D/PHP-FPM restart
The PHP-related configuration can be seen in the phpinfo () output.
Loaded Configuration File/etc/php.ini
==============================
First, to find the php-fpm.conf configuration file, see the configuration path of the PID (not the installation path), and then change the corresponding place below to normal execution.
[root@do-sg-h1 ~]# ps aux | grep php-fpm
Root 11799 0.0 0.0 103248 880 pts/0 s+ 13:51 0:00 grep--color php-fpm
Root 11973 0.0 0.0 417748 964? Ss Jun01 0:20 php-fpm:master process (/etc/php-fpm.conf)
Cat/etc/php-fpm.conf
See
PID =/var/run/php-fpm/php-fpm.pid
PHP-FPM Boot:
/usr/local/php/sbin/php-fpm
PHP-FPM off:
Kill-int ' Cat/var/run/php-fpm/php-fpm.pid '
PHP-FPM Restart:
KILL-USR2 ' Cat/var/run/php-fpm/php-fpm.pid '
To view the number of PHP-FPM processes:
PS aux | Grep-c PHP-FPM
=============================
[Root@do-sg-h1 ~]# Find/-name ' php-fpm '-type D
/var/log/php-fpm
/var/run/php-fpm
The path found with this find command is not correct.
which PHP
/usr/bin/php