nginx startup error: nginx -s relaod, please solve it, thank you!
世界只因有你
世界只因有你 2017-05-16 17:11:59
0
4
793

centos is compiled and started: nginx -s reload. The error is reported as follows: Why is this happening?

      invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
世界只因有你
世界只因有你

reply all(4)
我想大声告诉你

Just start and run nginx directly, no need to add signal

There is no need to add the -s parameter, -s is a signal, and reload is to reload the configuration file.

过去多啦不再A梦

Start nginx

If your nginx configuration file is in /etc/nginx/nginx.conf,启动nginx就可以nginx -c /etc/nginx/nginx.conf

nginx signal

nginx -s is to send a signal to nginx
nginx -s stop to stop immediately
nginx -s quit to stop gracefully
nginx -s reload to reread the configuration file

阿神

Delete the pid file in the corresponding directory, and then nginx start

漂亮男人

Execute the following command

kill -9 $(pgrep nginx)
nginx

First, kill the started nginx process, and then directly execute the nginx command to restart nginx.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template