nginx重启报错

时间:2021-06-24 18:14:17   收藏:0   阅读:0

[nginx@p0-hfssp-healthos-web02 sbin]$ sudo ./nginx -s reload
nginx: [error] invalid PID number "" in "/home/nginx/openresty/nginx/logs/nginx.pid"


发生这个错误的原因是,nginx读取配置文件时出错,需要指定一个特定的nginx配置文件,所以解决这个问题需要先执行
[nginx@p0-hfssp-healthos-web02 sbin]$ sudo ./nginx -c conf/nginx.conf
[nginx@p0-hfssp-healthos-web02 sbin]$ sudo ./nginx -s reload

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!