美文网首页
nginx报错没有pid文件

nginx报错没有pid文件

作者: linux_python | 来源:发表于2020-03-03 14:54 被阅读0次

[error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

[root@localhost nginx]/usr/local/nginx/sbin/nginx -s reload
提示 nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

[root@localhost nginx]# cd logs
[root@localhost logs]# ls
access.log  error.log  nginx-access.log  nginx_error.log
果然没有/usr/local/nginx/logs/nginx.pid 文件

解决方法:
[root@localhost nginx]/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

相关文章

网友评论

      本文标题:nginx报错没有pid文件

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