这样的双击启动双击关闭
start_nginx.bat内部
@echo off
cd /d D:\nginx-1.18.0\ #以自己的实际目录为准
start nginx.exe
exit
stop_nginx.bat内部
@echo off
::windows 2000,98
::tskill /A nginx > nul
::windows xp above:
taskkill /F /IM nginx.exe > nul
exit
这样的双击启动双击关闭
start_nginx.bat内部
@echo off
cd /d D:\nginx-1.18.0\ #以自己的实际目录为准
start nginx.exe
exit
stop_nginx.bat内部
@echo off
::windows 2000,98
::tskill /A nginx > nul
::windows xp above:
taskkill /F /IM nginx.exe > nul
exit