Problem with PHP curl calling local URL 499 under Windows

Source: Internet
Author: User
There are 2 sets of local environments
Mall
Discount Coupon

The mall needs to internally invoke the coupon's interface, we use the curl call, when the test environment is deployed locally, we find that the system is stuck.
View Nginx Log

Find a half a day to find the call to other machines normal, is not local.

The last discovery is that PHP's fastcgi concurrency is blocked, and threads can be used under Linux, but fastcgi is not supported under Windows.

Handling: Manual start of 2 fastcgi
127.0.0.1:9000
127.0.0.1:9001

@echo offset batDir=D:/web/phpStudy/php/php-5.6.27-nts/start "fcgi服务" /MIN  /D "%batDir%"  php-cgi.exe -b 127.0.0.1:9001 -c "%batDir%/php.ini"

Nginx configuration file

Problem with PHP curl calling local URL 499 under Windows

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.