您的位置:首页 > 运维架构

[置顶] dubbo -6监控中心的介绍与简易版的安装

2017-11-14 21:47 302 查看
1.上传dubbo-monitor-simple-2.5.3-assembly.tar.gz到/home/wusc/dubbo-monitor

2.解压

tar -zxvf dubbo-monitor-simple-2.5.3-assembly.tar.gz

3.重命名

mv dubbo-monitor-simple-2.5.3-assembly dubbo-monitor

4.编辑

vi conf/dubbo.properties

修改

dubbo.registry.address=zookeeper://192.168.3.71:2181

dubbo.jetty.port=8090(如果8080被占用的话)

5.修改防火墙

su root

vi /etc/sysconfig/iptables

增加

#dubbo

-A INPUT -m state --state NEW -m tcp -p tcp --dport 2181 -j ACCEPT

#dubbo-monitor

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8090 -j ACCEPT

重启防火墙

service iptables restart

6.启动monitor

./start.sh

7.访问localhost:8090

8.Dubbo 服务提供者和服务消费者中的 spring 配置文件中增加以下配置: 

<!-- 监控中心配置 -->

<!-- 监控中心协议,如果为protocol="registry",表示从注册中心发现监控中心地址,

否则直连监控中心 -->

<!-- 直连监控中心服务器地址,如:address="192.168.3.71:7070" -->

<dubbo:monitor protocol="registry"/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: