nginx: [error] invalid PID numbe

2019-07-09  本文已影响0人  和弦之乐

报错:

nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"

原因:
nginx还没有启动,所有没有PID

解决:

nginx -c /etc/nginx/nginx.conf
nginx -s reload
上一篇下一篇

猜你喜欢

热点阅读