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值。
1
2
3
4
5
|
location
/
{
.
.
.
proxy_read
_timeout
150
;
.
.
.
}
|
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
;
}
|
收 藏
成长的对话版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!