想在windows下查看dubbo服务的状态,在网上看到不少相关的资料,但是总有一些地方出问题,现在将自己经过测试可以正常使用的配置的过程写下来
1,解压zookeeper-3.3.6到D盘
2.复制D:\zookeeper-3.3.6\conf中的zoo_sample.cfg名字为zoo.cfg,并修改其内容
The number of milliseconds of each tick 心跳间隔 毫秒每次
tickTime=2000
The number of ticks that the initial
synchronization phase can take
initLimit=10
The number of ticks that can pass between
sending a request and getting anacknowledgement
syncLimit=5
the directory where the snapshot isstored. //镜像数据位置
dataDir=D:\data\zookeeper
日志位置
dataLogDir=D:\logs\zookeeper
the port at which the clients willconnect 客户端连接的端口
clientPort=2181
3.安装dubbo-admin,将dubbo-admin.war文件解压到D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT 目录下,修改web-inf下的dubbo.properties为
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
4.启动zookeeper,windows下双击D:\zookeeper-3.3.6\bin\zkServer.cmd
5.启动tomcat,双击D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7.exe
8.浏览器输入http://localhost:8080/ 用户名/密码为 root/root
本文介绍如何在Windows环境下配置Zookeeper并部署Dubbo-admin,以实现对Dubbo服务状态的有效监控。从Zookeeper的安装配置到Dubbo-admin的部署步骤均有详细说明。
1937

被折叠的 条评论
为什么被折叠?



