Fix: Gracefully shutting down php-fpm, warning, no pid file found - php-fpm is not running [[email protected] 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. [[email protected] etc]# vim php-fpm.conf pid = run/php-fpm.pid [[email protected] 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 [[email protected] 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. [[email protected] etc]# cd /usr/local/php/var/run/ [[email protected] run]# vim php-fpm.pid [[email protected] run]# ls php-fpm.pid [[email protected] run]# service php-fpm stop Gracefully shutting down php-fpm . done [[email protected] run]# service php-fpm start Starting php-fpm done [roo[email protected] run]# netstat -tunlp |grep 9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 3008/php-fpm [[email protected] run]# kill -INT `cat /usr/local/php/var/run/php-fpm.pid` [[email protected] run]# netstat -tunlp |grep 9000 [[email protected] run]# /etc/init.d/php-fpm start Startingphp-fpm done To add a service to the Chkconfig list, set up the boot. [[email protected] run]# chkconfig --add php-fpm [[email protected] run]# chkconfig php-fpm on