首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

HTTP2 504 Gateway Timeout 36369ms

Nginx报504 gateway timeout错误的解决方法 BUG背景信息: 线上正在运行的项目,某个服务一直出现超时访问,解决方案: 最终解决方案: 创建索引!!! 创建索引!!!...看看时间是否符合要求,在nginx.config里面的三个参数: fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout...如果使用了Nginx的代理,可以在块里加上: proxy_connect_timeout 300s; proxy_send_timeout 300s; proxy_read_timeout 300s...但是在线的人大都需要请求PHP-CGI进行大量的信息处理,因此我将nginx.conf设置为: fastcgi_connect_timeout 300s; fastcgi_send_timeout...300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; 这里规定了PHP-CGI的连接、发送和读取的时间,300秒足够用了,因此我的服务器很少出现

7310
领券