restart nginx windows code example
Example 1: restart nginx
sudo systemctl restart nginx
Example 2: restart nginx
sudo systemctl reload nginx
Example 3: restart nginx windows
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
Example 4: nginx reload on windows
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
Example 5: restart nginx mac
brew services restart nginx