服务器重启,nginx重启失败

服务改了配置,重启服务器,没有按照正常逻辑关闭ng

 

重启后,在sbin下

执行   

./nginx -s reload

 

报错信息

 

 

重新指向 nginx.pid 文件

执行

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 

又报错。。。报错信息

 

 

 

这就尴尬了,查看下端口占用情况

netstat -ntlp|grep 80  // 我用的80端口

 

 

 

1150端口被占用了,执行

kill -9 1150

 

OK,回到sbin下,执行

./nginx -s reload

 

世界和平,人间美好

 

posted @ 2020-05-19 11:40  Rachid  阅读(1468)  评论(0编辑  收藏  举报