/usr/local/nginx/sbin/nginx -s reload nginx: [error] invalid PID number "" in "/usr/local/nginx/logs

解决方法:
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
使用nginx -c的参数指定nginx.conf文件的位置
[root@localhost nginx]# cd logs/
[root@localhost logs]# ll
总用量 12
-rw-r–r-- 1 root root 1246 12月 9 18:10 access.log
-rw-r–r-- 1 root root 516 12月 10 15:39 error.log
-rw-r–r-- 1 root root 5 12月 10 15:38 nginx.pid
看nginx.pid文件已经有了。

猜你喜欢

转载自blog.csdn.net/quzery/article/details/89668748