码迷,mamicode.com
首页 > Windows程序 > 详细

nginx/Windows-1.9.3启动脚本

时间:2015-08-06 11:03:19      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:

启动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

nginx/Windows-1.9.3启动脚本

标签:

原文地址:http://www.cnblogs.com/jackiehe/p/4707115.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!