Fix: Gracefully shutting down php-fpm, warning, no pid file found - php-fpm is not running [root@localhost etc]# /etc/init.d/php-fpm stop Gracefully shutting down php-fpm warning,no pid file found - php-fpm is not running ? Error in closing PHP-FPM service, lack of PID file, solution to edit profile, enable PID file. [root@localhost etc]# vim php-fpm.conf pid = run/php-fpm.pid [root@localhost etc]# kill -INT `cat/usr/local/php/var/run/php-fpm.pid` cat: /usr/local/php/var/run/php-fpm.pid: No file or directory [root@localhost etc]# /etc/init.d/php-fpm stop Gracefully shutting down php-fpm warning,no pid file found - php-fpm is not running ? Try to shut down the service again, manually set up the Php-fpm.pid file can. [root@localhost etc]# cd /usr/local/php/var/run/ [root@localhost run]# vim php-fpm.pid [root@localhost run]# ls php-fpm.pid [root@localhost run]# service php-fpm stop Gracefully shutting down php-fpm . done [root@localhost run]# service php-fpm start Starting php-fpm done [root@localhost run]# netstat -tunlp |grep 9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 3008/php-fpm [root@localhost run]# kill -INT `cat /usr/local/php/var/run/php-fpm.pid` [root@localhost run]# netstat -tunlp |grep 9000 [root@localhost run]# /etc/init.d/php-fpm start Startingphp-fpm done To add a service to the Chkconfig list, set up the boot. [root@localhost run]# chkconfig --add php-fpm [root@localhost run]# chkconfig php-fpm on