Nging啓動與中止bat

start_nginx.batjava

@echo off  
f:  
cd F:\server\nginx-1.13.6  
echo "nginx is starting on port 80"  
start "" "nginx.exe"  
exit  

stop_nginx.batnginx

@echo off
::windows 2000,98
::tskill /A nginx > nul
::windows xp above:
taskkill /F /IM nginx.exe > nul
exit
相關文章
相關標籤/搜索