后端服务请求网关时The target server failed to respond 错误
1
vim /etc/sysctl.conf
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_fin_timeout = 20
sysctl -p
2
vim /usr/local/nginx/conf/nginx.conf
http里面的keepalive_timeout 改成0
后端服务请求网关时The target server failed to respond 错误
1
vim /etc/sysctl.conf
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_fin_timeout = 20
sysctl -p
2
vim /usr/local/nginx/conf/nginx.conf
http里面的keepalive_timeout 改成0