nginx重新加载配置
./sbin/nginx -s reload
报错
nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
解决方法
- 使用nginx -c的参数指定nginx.conf文件的位置
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
./sbin/nginx -s reload
nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
本文标题:Nginx 执行./sbin/nginx -s reload 报
本文链接:https://www.haomeiwen.com/subject/sxvmxqtx.html
网友评论