nginx重启脚本

356 阅读1分钟
@echo off
if "%1" == "h" goto begin 
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit 
:begin 
taskkill /F /IM nginx.exe
cd D:\software\nginx-1.10.1
D:
nginx.exe

比较喜欢的一段代码~,双击重启nginx~

放到txt里,保存成bat文件