美文网首页
nginx: [error] invalid PID numbe

nginx: [error] invalid PID numbe

作者: 拌着生活 | 来源:发表于2017-11-17 16:02 被阅读0次

    服务器重启后,重启nginx报错:nginx: [error] invalid PID number "" in "/var/run/nginx.pid" ,


    WechatIMG70.jpeg

    然后去查nginx.pid发现为空。
    网上有帖子使用nginx -c nginx.conf(相对路径),然而还是有问题,出现了nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use),


    WechatIMG71.jpeg
    使用lsof -i:80 发现nginx果然占着80端口,果断 sudo fuser -k 80/tcp ,然后在用nginx -c nginx.conf 就可以了

    相关文章

      网友评论

          本文标题:nginx: [error] invalid PID numbe

          本文链接:https://www.haomeiwen.com/subject/exujvxtx.html