溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Windows中怎么安裝ZooKeeper服務(wù)

發(fā)布時(shí)間:2021-06-22 14:34:40 來(lái)源:億速云 閱讀:176 作者:Leah 欄目:大數(shù)據(jù)

這篇文章給大家介紹Windows中怎么安裝ZooKeeper服務(wù),內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對(duì)大家能有所幫助。

一、下載ZooKeeper安裝包

本示例用的版本是3.4.13

  1. 官網(wǎng)下載地址:ZooKeeper下載鏈接

  2. 下載完解壓即可,解壓目錄如下 Windows中怎么安裝ZooKeeper服務(wù)

二、配置ZooKeeper

  1. 在解壓目錄同級(jí)新建data/logs文件夾,用來(lái)存放ZooKeeper的相關(guān)數(shù)據(jù)和日志 Windows中怎么安裝ZooKeeper服務(wù)

  2. 進(jìn)入安裝目錄下的/conf文件夾,復(fù)制zoo_sample.ctg新建一個(gè)zoo.ctg文件,并修改內(nèi)容如下

# The number of milliseconds of eachtick  心跳間隔毫秒每次
tickTime=2000
# The number of ticks that the initial  初始化連接超時(shí)次數(shù)
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and gettinganacknowledgement
syncLimit=5
# the directory where the snapshotisstored.  //鏡像數(shù)據(jù)位置
dataDir=E:\\zookeeper\\data
#日志位置
dataLogDir=E:\\zookeeper\\logs
# the port at which the clientswillconnect  客戶端連接的端口
clientPort=2181

三、啟動(dòng)服務(wù)

  1. 進(jìn)入安裝目錄下的bin目錄,雙擊zkServer.cmd Windows中怎么安裝ZooKeeper服務(wù)

  2. 雙擊zhCli.cmd連接測(cè)試 Windows中怎么安裝ZooKeeper服務(wù)


關(guān)于Windows中怎么安裝ZooKeeper服務(wù)就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI