首页 > Windows开发 > 详细

windows 下配置nginx 的脚本

时间:2020-03-17 23:22:14      阅读:81      评论:0      收藏:0      [点我收藏+]

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 的脚本

原文:https://www.cnblogs.com/xzqyun/p/12513739.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!