接口返回 504 Gateway Time-out 解决办法


http模块加入

http {
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
send_timeout 300s;

网上其他方案:

location /后端接口/{
加入:
# uwsgi_connect_timeout 600;
# uwsgi_send_timeout 600;
# uwsgi_read_timeout 600;

或设置fastcgi 这两种试过后无效


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM