启动 方式一
@echo off
REM set PHP_FCGI_CHILDREN=5
set PHP_FCGI_MAX_REQUESTS=1000
echo Starting PHP FastCGI...
cd /d d:/Program Files/php7/
REM php-cgi.exe -b 127.0.0.1:9000 -c php.ini
echo Starting nginx...
set curdir=%~dp0
cd /d %curdir%
start nginx.exe
启动 方式二(延迟两秒打开)
@ echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
timeout /t 2
set curdir=%~dp0
cd /d %curdir%
start nginx.exe
exit
关
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
exit