之前折腾机子,导致机子崩溃了,LNMP非正常关闭,开机后NGINX无法启动。

显示如下:

Stoping LNMP...
Stoping nginx... nginx:

kill(6036, 15) failed (3: No such process)

  1. 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
后再看一下

lnmp restart启动nginx失败