dubbo 管理器和监控中心使用

女生的网名这么多〃 提交于 2019-11-29 19:25:01

dubbo admin:

  • 下载dubbo-admin-2.6.war 放到tomcat webapp目录下,
  • 修改dubbo-admin-2.6.war\WEB-INF\dubbo.properties如下:
    • 注意登录一共两个角色:root/root,guest/guest 
    • 此处可以修改密码
dubbo.registry.address=zookeeper://192.168.48.133:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
  • 启动tomcat,登录: http://localhost:8080/dubbo-admin-2.6/

dubbo-monitor-simple

  • 下载得到dubbo-monitor-simple-2.5.10-assembly.tar.gz,
  • 解压 tar -zxvf dubbo-monitor-simple-2.5.10-assembly.tar.gz
  • 得到dubbo-monitor-simple-2.5.10
    • 直接拷贝到windows下也可用,启动使用start.bat
    • linux 下start.sh
  • 修改 dubbo-monitor-simple-2.5.10\conf\dubbo.properties
    • ${user.home} 得不到值会无法显示图片,可写死:/home/jly521
    • multicast://224.5.6.7:1234 改成:zookeeper://192.168.48.133:2181(具体看你的注册中心)
  • dubbo.container=log4j,spring,registry,jetty
    dubbo.application.name=simple-monitor
    dubbo.application.owner=
    dubbo.registry.address=multicast://224.5.6.7:1234
    #dubbo.registry.address=zookeeper://127.0.0.1:2181
    #dubbo.registry.address=redis://127.0.0.1:6379
    #dubbo.registry.address=dubbo://127.0.0.1:9090
    dubbo.protocol.port=7070
    dubbo.jetty.port=8080
    dubbo.jetty.directory=${user.home}/monitor
    dubbo.charts.directory=${dubbo.jetty.directory}/charts
    dubbo.statistics.directory=${user.home}/monitor/statistics
    dubbo.log4j.file=logs/dubbo-monitor-simple.log
    dubbo.log4j.level=WARN
    
    
    #######我的配置
    dubbo.container=log4j,spring,registry,jetty
    dubbo.application.name=simple-monitor
    dubbo.application.owner=jly
    dubbo.registry.address=zookeeper://192.168.48.133:2181
    #dubbo.registry.address=zookeeper://127.0.0.1:2181
    #dubbo.registry.address=redis://127.0.0.1:6379
    #dubbo.registry.address=dubbo://127.0.0.1:9090
    dubbo.protocol.port=7070
    dubbo.jetty.port=8088
    dubbo.jetty.directory=/jly/monitor
    dubbo.charts.directory=/jly/monitor/charts
    dubbo.statistics.directory=/jly/monitor/statistics
    dubbo.log4j.file=logs/dubbo-monitor-simple.log
    dubbo.log4j.level=WARN

  • 点击 charts  能看到报表:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!