使用 nginx 1.7 和 PHP(Laravel 框架)从 PostgreSQL 数据库中检索 1+ 百万行会导致错误 500 在 10 秒内显示。
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
我已经将一些超时设置为更长并重新加载了 nginx,但它不起作用。哪些设置可以防止这种超时?
启用站点
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_read_timeout 6000;
fastcgi_send_timeout 6000;
client_body_timeout 6000;
send_timeout 6000;
proxy_read_timeout 6000;
}