win nginx + php bat启动/停止脚本

  1. 启动脚本

@echo off
REM Windows 下无效
REM set PHP_FCGI_CHILDREN=5

REM 每个进程处理的最大请求数,或设置为 Windows 环境变量
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...
cd /d d:/Program Files/nginx/
start nginx.exe

  2.停止脚本

@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
echo Stopping PHP FastCGI...
taskkill /F /IM php-cgi.exe > nul
exit

上一篇:openwrt开源系统LUCI配置界面


下一篇:ubuntu set ntpdate