我是靠谱客的博主 调皮毛衣,这篇文章主要介绍Sentinel无法检测到服务,一片空白,现在分享给大家,希望可以做个参考。

sentinel(哨兵)

中文文档: https://github.com/alibaba/Sentinel/wiki/%E4%BB%8B%E7%BB%8D

Sentinel控制台下载及文档

中文文档:https://github.com/alibaba/Sentinel/wiki/%E6%8E%A7%E5%88%B6%E5%8F%B0

解决方案:

server:
  port: 8401

spring:
  application:
    name: alibaba-sentinel-service
  cloud:
    nacos:
      discovery:
        server-addr: localhost:3333 #Nacos服务注册中心地址
    sentinel:
      transport:
        dashboard: localhost:8085 #配置Sentinel dashboard地址
        port: 8719
        clientIp: localhost:8401

management:
  endpoint:
    sentinel:
      enabled: true
  endpoints:
    web:
      exposure:
        include: '*'

feign:
  sentinel:
    enabled: true # 激活Sentinel对Feign的支持

Sentinel客户端启动命令,不使用8080默认端口,避免占用

java -Dserver.port=8086 -Dcsp.sentinel.dashboard.server=localhost:8086 -jar sentinel-dashboard-1.8.1.jar

结果:

在这里插入图片描述

最后

以上就是调皮毛衣最近收集整理的关于Sentinel无法检测到服务,一片空白的全部内容,更多相关Sentinel无法检测到服务内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(39)

评论列表共有 0 条评论

立即
投稿
返回
顶部