1 php 启动命令
@echo off e: cd E:/php-7.0.6/ echo "php is starting on port 9007, php_version is 7.0.6" php-cgi -b 9007 -q exit
2 启动nginx
@echo off e: cd E: ginx echo "nginx is starting on port 80" start "" "nginx.exe" exit
3 停止nginx
@echo off e: cd e: ginx tasklist | findstr /i "nginx.exe" echo "nginx is running, stopping..." rem nginx -s stop TASKKILL /F /IM nginx.exe /T echo "stop ok"
4 重启nginx
@echo off e: cd e: ginx tasklist | findstr /i "nginx.exe" echo "nginx is running, stopping..." rem nginx -s stop TASKKILL /F /IM nginx.exe /T echo "stop ok" start "" "nginx.exe" exit