概述
NGINX 可以通過 PHP 附帶的 FastCGI 守護程序與 Windows 上的 PHP 進行交互:php-cgi.exe 。 您需要運行 php-cgi.exe -b 127.0.0.1:
Steps
-
安裝 nginx, 請看這里
-
安裝 php ,請自行百度
-
使用 RunHiddenConsole 運行 php-cgi.exe
新建一個 bat 文件(注意:路徑改為自己的真實路徑)
ECHO Starting PHP FastCGI... set PATH=C:\PHP;%PATH% c:\bin\RunHiddenConsole.exe C:\PHP\php-cgi.exe -b 127.0.0.1:9123
雙擊運行 bat 文件就能啟動 php-cgi.exe 了