nginx version: nginx/1.8.0
I am trying to stop nginx with the following command
/etc/init.d/nginx stop, however it is not returning any successful message. Then I tried to view the nginx processes with this command
[![pidof nginx]] and it returns following pids
My first query is why nginx is not stopping?
Another thing which I tried is to kill the processes, so as above mentioned PIDs I tried to remove them by following command
kill 58058 &
kill 58057, the processes are kill but amazingly new processes created automatically. When I again checked the with the command
pidof nginx, this time it returns 2 more new processes
My Second query is how these processes are automatically being created?
I know following query is off topic, however I also want to make changes to the configuration file under sites-available. Is there any way the config file changes will be implemented without restarting nginx server? (For this reason I am restarting my nginx) as we generally do with nginx.conf file with this command
service nginx reload or
My configurations files with pastebin link are as following
root@BS-Web-02:/var/run# cat nginx.pid 58762 root@BS-Web-02:/var/run# pidof nginx 58763 58762 root@BS-Web-02:/var/run# kill 58762 root@BS-Web-02:/var/run# pidof nginx 3809 3808 root@BS-Web-02:/var/run# cat nginx.pid 3808
Tried Following Solutions but didn't work
- Why doesn't stopping the nginx server kill the processes associated with it?
- Not able to stop nginx server
P.S I am using Varnish on Port 80 and nginx on 8080