Windows 에서 Nginx 시작 스 크 립 트

695 단어
start_nginx.bat
@echo off
e:
cd E:
ginx\ echo "nginx is starting on port 80" start "" "nginx.exe" exit

stop_nginx.bat
@echo off
e:
cd e:
ginx tasklist | findstr /i "nginx.exe" echo "nginx is running, stopping..." rem nginx -s stop TASKKILL /F /IM nginx.exe /T echo "stop ok"

restart_nginx.bat
@echo off
e:
cd e:
ginx tasklist | findstr /i "nginx.exe" echo "nginx is running, stopping..." rem nginx -s stop TASKKILL /F /IM nginx.exe /T echo "stop ok" start "" "nginx.exe" exit

좋은 웹페이지 즐겨찾기