dubbo相关的背景以及原理介绍可以参考http://blog.csdn.net/congcong68/article/details/41113239。
zookeeper下载地址:http://www-eu.apache.org/dist/zookeeper/zookeeper-3.4.6/
dubbo-admin-2.5.3下载地址:https://pan.baidu.com/s/1uCzYqK_cAZncddHr5wkxLQ
1.将下载好的zookeeper解压。解压后目录如下
打开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 an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=D:\\zookeeper\\data
dataLogDir=D:\\zookeeper\\log
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
进入bin文件夹。windows 点击zkServer.cmd ,启动zookeeper启动成功如下图
2、把下载好的dubbo-admin-2.5.3.war放在tomcat的webapps文件夹下(这里最好重新拷贝一个新的tomcat),然后把tomcat中默认的ROOT文件夹删除。将dubbo-admin-2.5.3.war重命名为ROOT.war
3.启动tomcat。这样直接访问 就能看到dubbo的页面。用户名密码在dubbo-admin-2.5.3.war(重命名后为ROOT.war)中WEB-INF下的dubbo.properties文件中。
登陆成功后会出现如下界面