nginx server restart command code example
Example 1: restart nginx
sudo systemctl restart nginx
Example 2: restart nginx windows
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
sudo systemctl restart nginx
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT