1, php--php 5.4 php-fpm restart, terminate Operation command
To view the 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.
[[Email protected] ~]# PS aux | grep php-fpm root 11799 0.0 0.0 103248 880 pts/0 s+ 13:51 0:00 grep--color php-fpmroot 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.PIDPHP-FPM start:/usr/local/php/sbin/php-fpmphp-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
=============================
' PHP-FPM ' -type D
2, nginx restart:/etc/init.d/nginx restart
Query PHP and nginx file address under Linux system