windows 下配置nginx 的脚本

start_nginx.bat

@echo off
e:
cd E:\nginx\
echo "nginx is starting on port 80"
start "" "nginx.exe"
exit

stop_nginx.bat
@echo off
e:
cd e:\nginx
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:\nginx
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

windows 下配置nginx 的脚本

上一篇:C#高级编程第11版 - 第十七章


下一篇:WPF 键盘导航附加属性解决TreeView的Tab导航焦点问题