JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Consul注册中心显示红叉 (All service checks failing)

发布时间 2023-05-04 15:45:43作者: 乐之者v

Consul注册中心显示红叉 (All service checks failing)

错误原因:

心跳机制没有打开,所以健康检查总是报红

解决方法:

在 application.properties 添加以下配置,打开心跳机制:

spring.cloud.consul.discovery.heartbeat.enabled=true

如果用的是 application.yml,如下:

spring:
    cloud:
        consul:
            discovery:
                heartbeat:
                    enabled: true

添加配置后,重新启动服务。

    本栏目推荐文章
  • .Net Core 系列: 集成 Consul 实现 服务注册与健康检查
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • web项目启动时dubbo报错: No provider available for the service com.davidhu.shopguide.api.service.UserEventService from the url zookeeper ://localhost:2181/org.apache.du
  • Asp .Net Core 系列: 集成 Consul 实现 服务注册与健康检查
  • check
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • Unity3d_Rewired官方文档翻译:要点(四):Rewired Editor->All Maps、Layout Rules、Map Enabler
  • 立案诉调 All In One
  • YAML示例:创建单幅本nginx容器到指定节点及其service
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们