1. Start the script start-php-nginx.bat
@ECHO OFF
ECHO Starting PHP FastCGI...
F:\web\Nginx\RunHiddenConsole.exe php-cgi.exe -b 127.0.0.1:9000
ECHO Starting Nginx ...
F:\web\Nginx\RunHiddenConsole.exe nginx.exe
2. Stop the script stop-php-nginx.bat
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
echo Stopping PHP FastCGI...
taskkill /F /IM php-cgi.exe > nul
exit
as the picture shows:
Source: This is a blog of Shuiyi. The quality is average, but it is useful and can be used as a tool blog. (I don't want to pierce you)