win nginx + php bat启动停止脚本

it2025-04-20  17

启动脚本

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

REM 每个进程处理的最大请求数,或设置为 Windows 环境变量set PHP_FCGI_MAX_REQUESTS=1000echo Starting PHP FastCGI...cd /d d:/Program Files/php7/REM php-cgi.exe -b 127.0.0.1:9000 -c php.iniecho 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

转载于:https://www.cnblogs.com/ISeeYouBlogs/p/php.html

最新回复(0)