Skip to content

Instantly share code, notes, and snippets.

@keberwein
Created September 2, 2016 16:28
Show Gist options
  • Save keberwein/2fad3537fc7217704686817ec36cc10e to your computer and use it in GitHub Desktop.
Save keberwein/2fad3537fc7217704686817ec36cc10e to your computer and use it in GitHub Desktop.
Restart Nginx Windows
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
@HuynhNgocXuan
Copy link

thanks

@shipofsea
Copy link

thanks

@mot3
Copy link

mot3 commented Dec 5, 2023

tnx, and kill service :)

@echo OFF
cd /nginx
taskkill /f /IM nginx.exe
EXIT

@londarks
Copy link

thanks

@hkn06tr
Copy link

hkn06tr commented Apr 12, 2024

nginx.exe -s reload

nginx -s stop | fast shutdown
nginx -s quit | graceful shutdown
nginx -s reload | changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen | re-opening log files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment