1

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

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 对我没有帮助。

我能做些什么 ?

4

1 回答 1

1

尝试将此添加到您的 nginx 块

fastcgi_read_timeout 60000; # or whatever number you need 
于 2013-09-18T16:47:34.260 回答