Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker 诊断工具


Nginx upstream timed out 10060

Nginx 负载均衡 大约 454 字

错误信息

upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: localhost

错误原因

在配置文件中配置了localhost

location /api/ {
    proxy_pass http://localhost:8080/;
}

解决办法

localhost改为127.0.0.1

location /api/ {
    proxy_pass http://127.0.0.1:8080/;
}
阅读 5341 · 发布于 2020-12-08

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批