504 Gateway Time-out(nginx)的处理

在nginx.conf配置里加入:

fastcgi_buffers 8 128k;

send_timeout 60;

注意添加位置在

http{ }

里,否则不工作

如下上面的设置后还是有504 Gateway Time-out错误,则继续修改添加以下部分

http{

………………

fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

fastcgi_buffer_size 64k;

fastcgi_buffers 4 64k;

fastcgi_busy_buffers_size 128k;

fastcgi_temp_file_write_size 128k;

………………

}

Drop Your Comment