【问题标题】:504 Gateway Time-out NGINX504 网关超时 NGINX
【发布时间】:2013-09-18 13:55:26
【问题描述】:

我正在运行一个需要一些时间才能运行的脚本 尝试运行时出现此错误

504 Gateway Time-out - nginx

这些是在我的 php.ini 上更新的值

max_input_time = 6000
max_execution_time = 60000
memory_limit = 256M

当我阅读并理解问题在于“FcgidIOTimeout”时,我需要在“/etc/httpd/conf.d/fcgid.conf”上进行更新 问题是我没有“httpd”文件夹,并且在 /etc/appche2/conf.d/ 上没有 fcgid.conf

我在 /etc/nginx/fastcgi.conf 下确实有“fastcgi.conf”,但在那里更新 FcgidIOTimeout 并重新启动 Apache 对我没有帮助。

我能做什么?

【问题讨论】:

    标签: apache nginx fastcgi


    【解决方案1】:

    尝试将其添加到您的 nginx 块中

    fastcgi_read_timeout 60000; # or whatever number you need 
    

    【讨论】:

    • 添加到哪个文件?
    • nginx.conf 中的位置块内...您能否向我们提供您的服务器结构?你用 apache 和 nginx 和 fastcgi 标记了这个。你在你的服务器上使用所有这些吗?
    猜你喜欢
    • 2011-08-30
    • 1970-01-01
    • 1970-01-01
    • 2013-02-13
    • 2011-04-08
    • 2011-10-04
    • 2019-10-22
    • 2019-12-02
    • 2019-01-20
    相关资源
    最近更新 更多