php-fpm is stop! 问题恢复
1.先查看下问题,查看lnmp的服务状态
/root/lnmp status
========================================================================= ========================================================================= Manager for LNMP V1.1 , Written by Licess ========================================================================= LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux This script is a tool to Manage status of lnmp For more information please visit http://www.lnmp.org Usage: /root/lnmp {start|stop|reload|restart|kill|status} ========================================================================= nginx (pid 13725 13724 13723 13722 13721 13719 13718 13717 13716) is running... php-fpm is stop! SUCCESS! MySQL running (13688) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:62288 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN tcp 0 0 :::62288 :::* LISTEN
解决方法:
1.重启php-fpm 就行了
单独重启nginx或者mysql、php: nginx : kill nginx进程ID,再/usr/local/nginx/sbin/nginx mysql :/etc/init.d/mysql restart php:没有重启 phpfpm:/usr/local/php/sbin/php-fpm reload
2.重启后,过段时间又访问不了,再重启下lnmp
/root/lnmp restart