Nginx Upstream timed out (110: Connection timed out)
Posted 学习也休闲
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx Upstream timed out (110: Connection timed out)相关的知识,希望对你有一定的参考价值。
在Nginx错误日志中,有大量的下列信息:
Upstream timed out (110: Connection timed out) while reading response header from upstream
这种情况主要在厦门两种情况下发生:
1. nginx proxy
需要适当的调整proxy_read_timeout值。
2. Nginx作为php-fpm等等其他的有上游服务
在这种情况下,适当的调整fastcgi_read_timeout选项值
1
2
3
4
5
6
7
|
location ~* .php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_read_timeout 150;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
|
以上是关于Nginx Upstream timed out (110: Connection timed out)的主要内容,如果未能解决你的问题,请参考以下文章
nginx 报错 upstream timed out (110: Connection timed out)解决方案
Nginx报 upstream timed out 10060
nginx报告upstream timed out (10060: A connection attempt failed)但实际上服务收到了请求
Nginx 高并发下报错 connect() failed (110: Connection timed out) while connecting to upstream