504 Gateway Time-out 服务器没有及时响应.如何解决? [英] 504 Gateway Time-out The server didn't respond in time. How to fix it?

查看:48
本文介绍了504 Gateway Time-out 服务器没有及时响应.如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户端请求下载压缩的日志文件,使用 Ext.js 在嵌入式 上提交表单iframe.请求已发送到服务器,该服务器具有 ApacheJBoss 6.servlet 压缩日志文件,执行一些数据库操作并返回压缩文件.

The client requested to download a compressed log file, using Ext.js a form submission on an embedded iframe. Request was sent to server, which has Apache and JBoss 6. The servlet compresses log files, do some database operation and returns the compressed file.

恰好在 2 分钟后,在浏览器网络面板上看到 504 网关超时服务器没有及时响应消息.如何修复此错误?

Exactly after 2 min, the 504 Gateway Time-out The server didn't respond in time message is seen at the browser net panel. How to fix this error?

推荐答案

servlet 需要很长时间来压缩日志文件,Apache 的超时设置为 2 分钟.

The servlet was taking a long time to compress the log files, and Apache's timeout was set to 2min.

通过增加 TimeOut Directive 来修复错误httpd.conf 文件:

The error was fixed by increasing the TimeOut Directive on the httpd.conf file:

#
# Timeout: The number of seconds before receives and sends time out.
#
##Timeout 120
Timeout 600

这篇关于504 Gateway Time-out 服务器没有及时响应.如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆