报错如下:
[root@webpublish nginx]# nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"
这个文件里面是空的,没有PID。
ps -aux |grep nginx
root 4148 0.0 0.0 112812 972 pts/0 S+ 09:13 0:00 grep --color=auto nginx
nginx 30028 0.0 0.0 123128 6612 ? S Jul29 0:03 nginx: worker process
nginx 30029 0.0 0.0 123128 6784 ? S Jul29 0:03 nginx: worker process
nginx 30030 0.0 0.0 123128 6808 ? S Jul29 0:06 nginx: worker process
nginx 30031 0.0 0.0 123128 6780 ? S Jul29 0:08 nginx: worker process
nginx 30032 0.0 0.0 123128 6820 ? S Jul29 0:11 nginx: worker process
nginx 30033 0.0 0.0 133468 17148 ? S Jul29 0:20 nginx: worker process
nginx 30034 0.0 0.0 123224 6888 ? S Jul29 0:20 nginx: worker process
nginx 30035 0.5 0.0 123420 7120 ? S Jul29 5:15 nginx: worker process