标签:
启动nginx.bat
@echo off
D:
cd D:\Program Files\nginx-1.9.3
tasklist | findstr /i "nginx.exe"
echo "nginx is starting on port 80"
start "" "nginx.exe"
pause
重启nginx.bat
@echo off
D:
cd D:\Program Files\nginx-1.9.3
tasklist | findstr /i "nginx.exe"
nginx -s reload
echo "restart ok"
pause
停止nginx.bat
@echo off
D:
cd D:\Program Files\nginx-1.9.3
tasklist | findstr /i "nginx.exe"
echo "nginx is running, stopping..."
rem nginx -s stop
TASKKILL /F /IM nginx.exe /T
echo "stop ok"
pause
标签:
原文地址:http://www.cnblogs.com/jackiehe/p/4707115.html