Nginx automatically exits the php-cgi under window

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.