【无标题】新版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

效果如下:
【无标题】新版github Dubbo拉取Dubbo整合zookeeper容器时需要注意的点_第1张图片

你可能感兴趣的:(微服务架构,zookeeper,hadoop)