ga('set', 'anonymizeIp', 1);
Categories: 运维

LNMP非正常关闭导致的NGINX出错

之前折腾机子,导致机子崩溃了,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失败

madlaxcb

View Comments

  • nginx啊mysql这些运行的时候都会有一个锁文件来阻止非法侵入,所以意外之后得把锁自己解开才可以,有时候apt-get都会遇到这种锁

Recent Posts

解决WIN10显示器重启后分辨率变低窗口乱跳问题

  最近换了显示器,当有事离开…

2月 ago

宝塔开启堡塔防入侵会导致Chevereto的Cron运行失败

昨晚给服务器搬迁,新服务器装了…

7月 ago

chevereto V3和V4的改造

今天有空升级了cheveret…

11月 ago

宝塔计划任务里的定时谷歌云盘备份修改为多线程压缩(20230930)

多核机器看着在那单线程压缩几十…

12月 ago

win11开启bbr2

powershell: net…

1年 ago

OVH使用API安装发行版内核的系统(关于API,IPXE,RAID等)

OVH的新面板提供的系统模板比…

1年 ago