http://hily.me/blog/2010/02/nginx-php-fpm-resouce-temporarily-unavailable/
Today on the test server on the Nginx + PHP-FPM environment, the results found that the PHP page frequently 502 bad Gateway error.
Nginx version: nginx/0.7.61
php-fpm:php-5.3.0-fpm-0.5.12
Nginx error log:
Connect () to Unix:/tmp/php-fpm.socket failed (11:resource temporarily unavailable) while connecting to upstream
It seems to be PHP-FPM's problem to look at the foreigner's discussion:
http://forum.nginx.org/read.php?3,31467,31467
The reason is that PHP-FPM is not using the backlog setting of the system when backlog is set to-1.
So we need to explicitly specify the backlog parameter.
Put the PHP-FPM in the configuration file:
<value name= "Backlog" >-1</value>
Change into:
<value name= "Backlog" >1024</value>
Problem elimination.
–eof–
---------
PESTD: After testing restart PHP-FPM, Nginx error_log does not appear error log, 502 of the log is reduced.