启动某个微服务后,consul控制台看到该服务service checks有个错误。
访问
http://localhost:8500/v1/agent/checks
查看服务状态,提示该服务状态为down。访问output提供的地址,
http://192.168.1.102:5001/actuator/health
只是简单的提示了down。并没有详细信息。
修改yaml配置文件,添加如下配置:
management:
endpoint:
health:
show-details: always
重启服务后,访问http://192.168.1.102:5001/actuator/
解决Consul中服务健康检查失败问题

最低0.47元/天 解锁文章
2961

被折叠的 条评论
为什么被折叠?



