妙博客

世界上最可怜的人,结构没破位赚一点就跑,结构破位死扛幻想反转

nginx报错504 Gateway Time-out的解决办法

1.打开nginx.conf

vim /etc/nginx/nginx.conf


2.在http模块下加上如下代码

client_max_body_size 50m;
proxy_read_timeout 600s;
fastcgi_connect_timeout 1200s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
fastcgi_buffers 8 128k;

image.png


3.重启nginx

service nginx restart


大功告成

Copyright Your 142132.com Rights Reserved. 赣ICP备17010829号-2