Windows nginx重启bat脚本

bat nginx
Updated: 2025-08-19

Windows nginx重启bat脚本 🔗

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
@echo off

taskkill /IM nginx.exe /F /T

echo "The process nginx.exe has been terminated."

pause

start /d D:\soft\nginx-1.22.1\nginx-1.22.1 /b nginx.exe

echo "Start nginx success"