windows开机启动nginx

bat脚本:

@echo off
color 3
echo "start nginx..."
ping -n 3 127.0.0.1>nul
cd /d d:nginx\nginx-1.16.1
start nginx.exe
echo "start nginx SUCCESS"
ping -n 3 127.0.0.1>nul
exit
posted @ 2019-12-13 14:01  golang-jack  阅读(272)  评论(0编辑  收藏  举报