win32+nginx+php automatically hangs off Php-cgi.exe
Runhiddenconsole e:/wnmp/php5/php-cgi.exe-b 127.0.0.1:9000-c "E:/wnmp/php5/php.ini"
The first step: Download XXFPM, address will not provide, Baidu search, there are many.
The download is ready.
Step Two: Create a new text and write the following code.
RunHiddenConsole.exe H:/server_core/xxfpm/bin/xxfpm.exe "H:/server_core/php/php-cgi.exe-c h:/server_core/php/ PHP.ini "-N 2-i 127.0.0.1-p 9000
Explained below:
RunHiddenConsole.exe This is a window hiding tool, because if you do not use this, the CMD window will be open, close the window then the process will exit, Ho Ho, can not take such, so this also to download Oh, this RunHiddenConsole.exe and Php-cgi.bat To be placed in your PHP root directory
The above code 2 refers to open two php-cgi.exe process, the situation according to their own requirements, but not recommended 1 processes, specific reasons will be updated in the future blog. In addition, we will talk about the balance load, that time the 2 will be changed to 1.
The above code 9000 refers to PHP through 9000 port transmission
Warm tip: The code inside the slash to use "/" and cannot use "\", the code inside the path is replaced by your actual configuration path, and so on.
OK, after saving, the txt text renamed to Php-cgi.bat, save, and then click, Haha, the process of stable operation ...
Nginx automatically exits the php-cgi under window