nginx + php-fpm 502 Bad Gateway 深度分析

表面错误:502 Bad Gateway

nginx 错误日志:

2012/11/22 15:47:37 [error] 9821#0: *2771 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 111.0.211.204, server: www.paidc.com, request: "GET /index.php/cuxiao/stock1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.paidc.com", referrer: "http://www.paidc.com/index.php/"

php-fpm错误日志:

[22-Nov-2012 15:47:37] WARNING: [pool www] child 10790 exited on signal 11 (SIGSEGV) after 711.968842 seconds from start
[22-Nov-2012 15:47:37] NOTICE: [pool www] child 11077 started

 

最终原因:eaccelerator不能用,用上就频繁出错,禁用后就好了