解决Nginx响应超时问题:upstream timed out (110: Connection timed out)

1,413次阅读
没有评论

一、问题现象
通常当我们在进行web页面访问的时候,会出现报错504。页面无法显示出来
查看日志,发现如下:
upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: *, request: “POST /store/dsmgmt/signin HTTP/1.0”, upstream: “http://unix:/dev/shm/run/gunicorn.sock:/store/dsmgmt/signin”, host: “xxx.xxx.xxx.xxx”, referrer: “http://xxx.xxx.xxx.xxx/”

问题简述:
upstream timed out :反向代理连接超时

二、解决方法
1、修改反向代理超时时间,如下所示:

[root@a abc]# cat nginx.conf
server {
listen 80;
server_name nginx.ee.com;
access_log /a/logs/nginx/nginx.gree.com_access.log main;
error_log /a/logs/nginx/zabbix.gree.com_error.log error ;
root /a/webserver/nginx;
index index.html index.htm index.php;

   #error Connection timed out and 504 error
   large_client_header_buffers 4 16k;
   client_max_body_size 30m;
   client_body_buffer_size 128k;
   fastcgi_connect_timeout 300;
   fastcgi_read_timeout 300;
   fastcgi_send_timeout 300;
   fastcgi_buffer_size 64k;
   fastcgi_buffers   4 32k;
   fastcgi_busy_buffers_size 64k;
   fastcgi_temp_file_write_size 64k;

}
如下所示,添加反向代理超时时间
注意 在server标签内进行如下天
在server标签内添加如下内容:

error Connection timed out and 504 error

large_client_header_buffers 4 16k;
client_max_body_size 30m;
client_body_buffer_size 128k;
fastcgi_connect_timeout 300;
fastcgi_read_timeout 300;
fastcgi_send_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 64k;
fastcgi_temp_file_write_size 64k;
2、再重启nginx服务

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2024 年 5 月
 12345
6789101112
13141516171819
20212223242526
2728293031  
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
清库存!DeepSeek突然补全R1技术报告,训练路径首次详细公开

清库存!DeepSeek突然补全R1技术报告,训练路径首次详细公开

清库存!DeepSeek突然补全R1技术报告,训练路径首次详细公开 Jay 2026-01-08 20:18:...
手把手教你用AI 10分钟生成一个APP!零基础也能搞定

手把手教你用AI 10分钟生成一个APP!零基础也能搞定

今日,我将向大家展示DeepSeek的全新玩法——从零开始,利用AI创建一个完整的应用程序。借助DeepSee...
训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享

训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享

训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享 衡宇 2026-01-08 20:...
开源“裸考”真实世界,国产具身智能基座模型拿下全球第二!

开源“裸考”真实世界,国产具身智能基座模型拿下全球第二!

开源“裸考”真实世界,国产具身智能基座模型拿下全球第二! 西风 2026-01-08 19:02:20 来源:...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
刚刚,智谱港交所敲钟!市值528亿港元

刚刚,智谱港交所敲钟!市值528亿港元

刚刚,智谱港交所敲钟!市值528亿港元 闻乐 2026-01-08 10:08:39 来源:量子位 全球大模型...
黄仁勋CES回应全场!内存卡GPU脖子,游戏玩家可能只能用旧显卡了

黄仁勋CES回应全场!内存卡GPU脖子,游戏玩家可能只能用旧显卡了

黄仁勋CES回应全场!内存卡GPU脖子,游戏玩家可能只能用旧显卡了 西风 2026-01-08 13:50:3...
傅利叶首秀CES 2026,全面展示“有温度”的人机交互

傅利叶首秀CES 2026,全面展示“有温度”的人机交互

傅利叶首秀CES 2026,全面展示“有温度”的人机交互 西风 2026-01-08 19:27:35 来源:...
开源“裸考”真实世界,国产具身智能基座模型拿下全球第二!

开源“裸考”真实世界,国产具身智能基座模型拿下全球第二!

开源“裸考”真实世界,国产具身智能基座模型拿下全球第二! 西风 2026-01-08 19:02:20 来源:...
训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享

训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享

训具身模型遇到的很多问题,在数据采集时就已经注定了丨鹿明联席CTO丁琰分享 衡宇 2026-01-08 20:...