How to stop nginx for windows? How to stop nginx for windows? nginx nginx

How to stop nginx for windows?


Use @taskkill /f /im nginx.exe for this task.


You can stop using quit

nginx.exe -s quit


One can toggle Nginx start stop in Windows using 2 command prompts. One for Nginx start and other for Nginx Stop.

If you stop Nginx from one command prompt then the Nginx process which was started from other prompt will automatically stop, Otherwise if you try to stop the Nginx process from where it started using ctrl+c then it will not stop even tough you close the command prompt, Unless you kill the nginx processes from TaskManager.

enter image description here