windows开机启动nginx

bat脚本:

@echo off
color 3
echo "start nginx..."
ping -n 3 127.0.0.1>nul
cd /d d:nginx
ginx-1.16.1
start nginx.exe
echo "start nginx SUCCESS"
ping -n 3 127.0.0.1>nul
exit
原文地址:https://www.cnblogs.com/liujie-php/p/12034762.html