win7 重启nginx、php-cgi命令:
@ECHO OFF
ECHO Starting PHP FastCGI...
set PATH=D:\wamp64\bin\php\php5.6.25;%PATH%
taskkill /fi "imagename eq php-cgi.exe"
RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9000
RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9001
RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9002
RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9003
rem RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9004
rem RunHiddenConsole.exe D:\wamp64\bin\php\php5.6.25\php-cgi.exe -b 127.0.0.1:9005
rem 重启nginx
rem nginx -s reload
taskkill /F /fi "imagename eq nginx.exe"
start nginx
rem PAUSE
相关资料参考:
- taskkill https://technet.microsoft.com/en-us/library/bb491009.aspx
- nginx fow win http://nginx.org/en/docs/windows.html
- php for win http://windows.php.net/download/