Skip to content

Instantly share code, notes, and snippets.

@keberwein
Created September 2, 2016 16:28
Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • 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
@abdalrahman01
Copy link

Thanks!

@mike88ua
Copy link

Thanks!

@dalthonmh
Copy link

Thanks!

@newvivis
Copy link

Thanks!

@Lenochxd
Copy link

Lenochxd commented Sep 7, 2022

Thanks!

Copy link

ghost commented Sep 28, 2022

Thanks!

@namra98
Copy link

namra98 commented Oct 13, 2022

Thanks!

@Julien-Gio
Copy link

Thanks!

@levymeireles
Copy link

Thanks!!

@Rozygeldiyew-git
Copy link

Thanks!!!

@Bluyx
Copy link

Bluyx commented Apr 4, 2023

Thanks!!!

@st-vishnu
Copy link

Thank you some much

@OsmanFarukO
Copy link

Thanks!

@Som-comite
Copy link

Thanks <3

@GunwantBhambra
Copy link

Thanks!

@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