dubbo-admin打包和zookper安装

1 首选安装Zookper,下载zookeeper-3.5.3-beta版本,在这里我主要演示这个;下载地址:http://mirrors.hust.edu.cn/apache/zookeeper/

下面是Zookper的安装目录:

 2 进入conf文件夹进行配置,这里主要配置的是zookper工作数据的目录和日志的目录;我的配置如下:

  修改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://zookiper/zookeeper/data
# 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

再之后启动zkServer.cmd:

类似如上图的界面:证明Zookper连接成功,也可以启动客户端连接下;

3 下载dubbo的源码包,这里可以去Github上下载,下载完成后如下:

4 看到dubbo-admin文件夹:就对这个文件夹进行打包就OK啦;

  运行cmd:输入 mvn package -Dmaven.skip.test=true  命令即可打包;

  之后将打好的包放在tomcat下面的webapp下,启动tomcat之后,访问http://localhost:8096/dubbo-admin-2.5.8/  用户名:root  密码:root

看如下的界面:

原文地址:https://www.cnblogs.com/gosaint/p/8640783.html