PHP often prompts 504 Gateway Time-out

  ios, question

Problem

Win7 installednginx1.6.2The official website version adds wamp’s PHP library, and then PHP in the program uses curl to collect a remote program, but it always appears504 Gateway Time-outHint! Using PHP in wamp, without php-fpm, how to modify itmax_childrenParameters?

Startup code

@echo off
 Invalid under REM Windows
 REM set PHP_FCGI_CHILDREN=5
 
 REM Maximum Number of Requests Processed per Process, or Set to Windows Environment Variable
 set PHP_FCGI_MAX_REQUESTS=1000
 
 echo Starting PHP FastCGI  ...
 RunHiddenConsole D:/wamp/bin/php/php5.5.12/php-cgi.exe -b 127.0.0.1:9000 -c D:/wamp/bin/apache/apache2.4.9/bin/php.ini
 
 echo Starting nginx  ...
 RunHiddenConsole D:/nginx/nginx.exe -p D:/nginx

set_time_limit(0);
504 is reported by the web service, which is generally the timeout of program execution.