林子大了什么鸟都有,程序猿做久了什么bug都有。
bug描述
解决
location /guanli {
root html;
index index.html index.htm;
proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_send_timeout 1200s;
# nginx接收upstream server数据超时, 默认60s, 如果连续的60s内没有收到1个字节, 连接关闭
proxy_read_timeout 1200s;
# nginx与upstream server的连接超时时间
proxy_connect_timeout 1200s;
# 发送数据至客户端超时, 默认60s, 如果连续的60s内客户端没有收到1个字节, 连接关闭
send_timeout 1200s;
proxy_pass http://adminService;
}
ps:
可能有童鞋提出导入时间太长,这个也作为优化的一个角度,可是数据再多的时候,也可能2分钟都不够~~~