When I am executing this command:
./nginx -s reload
Throw error:
nginx: [alert] kill(57200, 1) failed (3: No such process)
when I open the nginx.pid file:
vim /usr/loca/nginx/logs/nginx.pid
the process id is:57200.But when I am checking nginx process,it does not have master process,the output is:
[root@localhost logs]# ps -aux|grep nginx
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root 12191 0.0 0.0 28172 8956 ? S Aug29 3:54 nginx: worker process
root 12192 0.0 0.0 28172 8960 ? S Aug29 3:53 nginx: worker process
root 12193 0.0 0.0 28436 9272 ? S Aug29 3:46 nginx: worker process
root 12194 0.0 0.0 28172 8948 ? S Aug29 3:55 nginx: worker process
root 12195 0.0 0.0 28436 9156 ? S Aug29 3:56 nginx: worker process
root 12196 0.0 0.0 28172 8944 ? S Aug29 3:49 nginx: worker process
root 12197 0.0 0.0 28172 8988 ? S Aug29 3:58 nginx: worker process
root 12198 0.0 0.0 27908 8740 ? S Aug29 3:42 nginx: worker process
root 12199 0.0 0.0 27908 8744 ? S Aug29 3:39 nginx: worker process
root 53760 0.0 0.0 103252 832 pts/1 S+ 22:14 0:00 grep nginx
root 80835 0.0 0.0 27908 8740 ? S Aug31 2:30 nginx: worker process
What's wrong? How to solve this problem? The nginx version is 1.10.2.
I also faced similar issue on nginx 1.10.2.
Instead of ./nginx -s reload
, I used ./nginx
to start nginx and it solved this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With