【无标题】新版github Dubbo拉取Dubbo整合zookeeper容器时需要注意的点

1.首先下载Zookeeper

下载地址:https://zookeeper.apache.org/

修改conf文件夹

复制一份conf文件夹下的zoo_sample.cfg改为zoo.cgf

然后修改配置zoo配置文件

(1)修改端口

修改serverPort端口号,以防止新版的Doubbol项目中启动dubbo-admin-server时底层tomcat端口号冲突

cgfadmin.serverPort=8888
(2)修改数据储存位置

在和bin同级目录下新建data文件夹然后修改数据储存位置

dataDir=../data
(3)修改后的配置文件
# The number of milliseconds of each tick
admin.serverPort=8888

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=/tmp/zookeeper
dataDir=../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

## Metrics Providers
#
# https://prometheus.io Metrics Exporter
#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
#metricsProvider.httpPort=7000
#metricsProvider.exportJvmInfo=true


2 下载Doubbol

cnd打开dubbo-admin-ui

(1 )执行(需要提前安装nodejs和cnpm 再安装一下webpack))
 cnpm install//下载依赖
     
 npn run dev  //开发环境启动
(2)打jar包

在dubbo-admin-server中打开cmd执行

mvn install -Dmaven.test.skip=true #打包,并跳过测试环节
(3)在dubbo-admin-server中的target文件中执行jar包
java jar dubbo-admin-server-0.4.0.jar

3 访问 dubbo-admin-ui的cmd中提示的2个端口号之一

用户名和密码都是:root

效果如下:
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值