在AWS添加负载均衡时没有点击<添加到已注册> 才导致的错误,导致了没有实例,才有了503的报错,选中下方实例后,点击添加到已注册,中间的已注册目标会出现选择的记录
when you run to this error means
HTTP 503: Service Unavailable
The target groups for the load balancer have no registered targets.
Here how to fix
Modify the Health Check Settings of a Target Group
You can modify the health check settings for your target group at any time.
To modify the health check settings of a target group using the console
1.Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
2.On the navigation pane, under LOAD BALANCING, choose Target Groups.
3.Select the target group.
4.On the Health checks tab, choose Edit.
choose Instance then click “Add to registered”
after add to registered, it will show on a registered target then click save
that’s it.
refresh page and tada
Thank you!
转自:https://degaze-film.medium.com/aws-load-balancer-503-service-temporarily-unavailable-e1e91c0dfcdb