之前折腾机子,导致机子崩溃了,LNMP非正常关闭,开机后NGINX无法启动。
显示如下:
Stoping LNMP...
Stoping nginx... nginx:
- Use force-quit
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx... nginx (pid ) already running.
Starting MySQL.. SUCCESS!
Starting php-fpm done
Starting php-fpm done
查找资料后找到个军哥给的回复:
nginx非正常关闭后pid文件没被删除,可以 rm -f /usr/local/nginx/logs/nginx.pid
后再看一下
文章有(1)条网友点评
nginx啊mysql这些运行的时候都会有一个锁文件来阻止非法侵入,所以意外之后得把锁自己解开才可以,有时候apt-get都会遇到这种锁