dubbo-monitor-simple-2.5.3-assembly 简易监控中心安装

时间:2021-12-08 13:50:57

dubbo-monitor-simple-2.5.3-assembly资源下载

dubbo-monitor是一个web工程,是基于内嵌的jetty。dubbo-monitor是使用java编写的项目,所以需要安装jdk。

安装过程
tar zxvf dubbo-monitor-simple-2.5.3-assembly
配置过程
cd dubbo-monitor-simple-2.5.3-assembly
vi conf/dubbo.properties

1 ##
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=multicast://224.5.6.7:1234
20 #dubbo.registry.address=zookeeper://127.0.0.1:2181
21 #dubbo.registry.address=redis://127.0.0.1:6379
22 #dubbo.registry.address=dubbo://127.0.0.1:9090
23 dubbo.protocol.port=7070
24 dubbo.jetty.port=9090
25 dubbo.jetty.directory=${user.home}/monitor
26 dubbo.charts.directory=${dubbo.jetty.directory}/charts
27 dubbo.statistics.directory=${user.home}/monitor/statistics
28 dubbo.log4j.file=logs/dubbo-monitor-simple.log
29 dubbo.log4j.level=WARN

注释掉19
去掉20行的 #,将ip 端口号 修改为 zookeeper服务器的ip地址端口号,如果你的zookeeper是集群,则注册地址修改为zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
23行 协议端口,端口号只要是没有被占用就行
24行 jetty提供web服务的端口号,即通过 浏览器访问 监控中心的端口号
其他的配置默认就行,当然也可以自己配置。

保存以上配置
启动过程
tail -f /usr/local/dubbo-monitor-simple-2.5.3/logs/stdout.log
cd /usr/local/dubbo-monitor-simple-2.5.3/bin
./start.sh
执行命令 ./start.sh 后 stdout.log日志文件会输出
[2016-03-01 11:30:46] Dubbo service server started!
说明启动成功

浏览器访问地址 http://192.168.17.129:9090/ 显示页面
dubbo-monitor-simple-2.5.3-assembly 简易监控中心安装