How to Start and Stop Nginx on Windows

Starting Nginx:

Navigate to the nginx directory and double-click nginx.exe    or    run the command in cmd:

start nginx

Stopping Nginx

nginx -s stop   
or   
nginx -s quit

stop means immediately terminate nginx without saving related information

quit means gracefully exit nginx and save related information

Restarting (required after configuration changes)

nginx -s reload

Leave a Comment

Your email address will not be published.