问题:后端代码逻辑用时过长,nginx中默认是60S的请求连接等待,超过则报504网关超时, 解决办法: nginx配置 proxy_send_timeout 300; proxy_read_timeout 300; proxy_connect_timeout 300;