在nginx + php-fpm中出现错误502,错误的网关。仅在phpMyAdmin中发生此错误。 error.log中有错误:
2012/05/14 10:12:28 [error] 1888#0: *209 recv() failed (104: Connection reset by peer) while reading response header from upstream
这是php位置的nginx配置:
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_buffers 256 128k;
fastcgi_buffer_size 512k;
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
include fastcgi_params;
使用此程序:PHP 5.4.2(FPM),nginx / 1.1.19。会话现在存储在memcache中。在过去它存储在文件中,错误502也是。