apache-zookeeper-3.7.1?安裝部署教程
apache-zookeeper-3.7.1 安裝部署
下載地址:https://mirrors.bfsu.edu.cn/apache/zookeeper/
apache-zookeeper-3.7.1
1.下載直接解壓,進(jìn)入../conf/目錄下復(fù)制一份zoo_sample.conf, 改名為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=/tmp/zookeeper # 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 dataDir=D:\\soft_position\\Java\\zzz_test\\apache-zookeeper-3.7.1\\data dataLogDir=D:\\soft_position\\Java\\zzz_test\\apache-zookeeper-3.7.1\\log admin.serverPort=8887
配置參考二:
# dataDir里放的是內(nèi)存數(shù)據(jù)結(jié)構(gòu)的snapshot dataDir=../data # 客戶端連接zookeeper服務(wù)的端口 clientPort=2183 # 服務(wù)啟動(dòng)默認(rèn)8080,避免和其他服務(wù)沖突配置8888 admin.serverPort=8888 # 配置zookeeper 的默認(rèn)賬號(hào)密碼, 用于登入dubbo admin.root.user.name=root admin.root.user.password=root
2.啟動(dòng)zookeeper,進(jìn)入../bin/目錄,Windows環(huán)境啟動(dòng)文件為zkServer.cmd,Linux環(huán)境啟動(dòng)文件為zkServer.sh
zookeeper 啟動(dòng)
#在這個(gè)目錄下面
D:\soft_position\Java\zzz_test\apache-zookeeper-3.7.1\bin
#雙擊 zkServer.cmd **** 啟動(dòng)**********
其他參考地址: 安裝注冊(cè)中心 zookeeper
到此這篇關(guān)于apache-zookeeper-3.7.1 安裝部署的文章就介紹到這了,更多相關(guān)apache-zookeeper-3.7.1 安裝內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Ubuntu中實(shí)現(xiàn)定時(shí)喚醒與自動(dòng)休眠功能
在自動(dòng)化腳本執(zhí)行的時(shí)間段內(nèi)喚醒系統(tǒng)使其正常運(yùn)行,其余時(shí)間則讓其進(jìn)入休眠狀態(tài),以此來(lái)降低能耗,為達(dá)成這一目標(biāo),我編寫(xiě)了一個(gè)簡(jiǎn)易的腳本,并通過(guò) crontab 配置了自動(dòng)化任務(wù),接下來(lái),我會(huì)詳盡地講解整個(gè)配置過(guò)程,需要的朋友可以參考下2024-09-09Linux系統(tǒng)利用cp命令實(shí)現(xiàn)強(qiáng)制覆蓋功能的方法
cp命令是我日常學(xué)習(xí)中經(jīng)常會(huì)遇到的一個(gè)命令,下面這篇文章主要給大家介紹了關(guān)于Linux系統(tǒng)利用cp命令實(shí)現(xiàn)強(qiáng)制覆蓋功能的方法,并且給大家簡(jiǎn)單的介紹了cp命令的基礎(chǔ)知識(shí),需要的朋友可以參考借鑒,下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧。2017-11-11linux查看防火墻是否關(guān)閉的實(shí)例方法
在本篇文章里小編給各位分享的是關(guān)于linux查看防火墻是否關(guān)閉的實(shí)例方法,需要的朋友們可以學(xué)習(xí)下。2020-03-03