Dubbo后台管理和监控中心部署

快来打我* 2022-06-11 00:38 332阅读 0赞

通过dubbo监控中心和后台管理可以很好的监控dubbo服务,监控服务端服务和客户端调用情况,调用次数,调用日志,方便问题查找。下面我们看看dubbo的管理后台和监控中心怎么部署。

1.软件下载

  1. 部署管理后台和监控中心需要以下软件

opensesame 下载地址:https://github.com/alibaba/opensesame

Dubbo源码下载 https://github.com/alibaba/dubbo

  1. ![Center][]
  2. Tomcat下载地址 [http://tomcat.apache.org/download-70.cgi][http_tomcat.apache.org_download-70.cgi]

2.编译

  1. ![Center 1][]

下载完成后,解压,切换到opensesame-master目录下(如上图),打开CMD命令,执行如下命令

mvn install -Dmaven.test.skip=true

Center 2

3.dubbo-admin部署

dubbo管理平台dubbo-admin部署

解压dubbo-master文件夹,打开CMD命令,切换到dubbo-master目录,执行

mvn install -Dmaven.test.skip=true命令,完成后,会看到dubbo-admin的target文件夹下有dubbo-admin-2.5.4-SNAPSHOT.war

如下图

Center 3

解压tomcat,将dubbo-admin-2.5.4-SNAPSHOT.war包拷贝到Tomcat的webapps文件夹下

然后启动tomcat,启动tomcat的方法如下,

切换到tomcat的bin文件夹,启动startup.bat命令

目录如下

Center 4

命令如下

Center 5

此时dubbo-admin-2.5.4-SNAPSHOT.war会自动解压,在webapps目录下生成一个dubbo-admin-2.5.4-SNAPSHOT文件夹,

Center 6

将webapps下的root文件夹下的内容全部删除,将dubbo-admin-2.5.4-SNAPSHOT文件夹下的内容全部拷贝到Root文件夹下,最终结果如下图

Center 7

修改下root文件夹下web-inf文件夹下的dubbo.properties文件,

文件内容如下

dubbo.registry.address=127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183

dubbo.admin.root.password=root

dubbo.admin.guest.password=guest

打开浏览器输入地址: http://localhost:8080/,输入账号和密码登录guest/guest

Center 8

Center 9

4.dubbo监控平台monitor部署

在本地仓库中或者dubbo-monitor-simple项目中找到dubbo-monitor-simple-2.5.4-SNAPSHOT-assembly.tar.gz文件,拷贝到D盘,解压后如下图

Center 10

找到conf文件夹下的dubbo.properties文件,修改配置文件如下

[html] view plain copy

  1. <**span style=”font-family:Microsoft YaHei;”>**##
  2. # Copyright 1999-2011 Alibaba Group.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the “License”);
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an “AS IS” BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ##
  16. dubbo.container=log4j,spring,registry,jetty
  17. dubbo.application.name=simple-monitor
  18. dubbo.application.owner=
  19. #dubbo.registry.address=127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183
  20. dubbo.registry.address=zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
  21. #dubbo.registry.address=zookeeper://127.0.0.1:2181
  22. #dubbo.registry.address=redis://127.0.0.1:6379
  23. #dubbo.registry.address=dubbo://127.0.0.1:9090
  24. dubbo.protocol.port=7070
  25. dubbo.jetty.port=8086
  26. dubbo.jetty.directory=${user.home}/monitor
  27. dubbo.charts.directory=${dubbo.jetty.directory}/charts
  28. dubbo.statistics.directory=${user.home}/monitor/statistics
  29. dubbo.log4j.file=logs/dubbo-monitor-simple.log
  30. dubbo.log4j.level=WARN
  31. </**span**>

Center 11

打开cmd命令行,切换到bin文件夹,执行start.bat命令

Center 12

执行完成后,输入地址http://localhost:8086/index.html

出现如下界面

Center 13

发表评论

表情:
评论列表 (有 0 条评论,332人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Dubbo监控中心

    1)、dubbo-admin 图形化的服务管理页面;安装时需要指定注册中心地址,即可从注册中心中获取到所有的提供者/消费者进行配置管理   2)、dubbo-mon

    相关 Dubbo 监控中心

    1.Dubbo 监控中心      dubbo管理控制台开源部分主要包含:   提供者  路由规则  动态配置  访问控制  权重调节  负载均衡  负责人,等管理功能。

    相关 部署dubbo监控中心

    Dubbo管控台可以对注册到zookeeper注册中心的服务或服务消费者进行管理,但管控台是否正常对Dubbo服务没有影响,管控台也不需要高可用,因此可以单节点部署。  

    相关 Dubbo后台管理监控中心部署

    通过dubbo监控中心和后台管理可以很好的监控dubbo服务,监控服务端服务和客户端调用情况,调用次数,调用日志,方便问题查找。下面我们看看dubbo的管理后台和监控中心怎么部