我在 AWS 中遇到了问题。我正在使用 ELB 创建和注册一个实例。虽然它正在注册,但它没有通过健康检查并显示停止服务。错误原因是“Instance has failed at least the Unhealthy Threshold number of health checks”。
我的健康检查值如下:
Ping Target: TCP:80
Timeout: 10 seconds
Interval: 24 seconds
Unhealthy Threshold: 6
Healthy Threshold: 10
感谢您的帮助。
谢谢,
昌丹
最佳答案
您的实例是否在 ELB 后面运行 Web 服务器?如果是,它会返回一个 '200' (OK) 吗?如果没有,那就是你的问题。
如果您正在运行返回 200 的 Web 服务,您的安全组是否对 ELB 开放?这意味着 ELB 的源安全组必须允许进入您实例的安全组。
关于amazon-web-services - AWS EC2 实例在 ELB 注册后是 "Out of Service",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20491337/