您好,登錄后才能下訂單哦!
這篇文章給大家介紹Windows中怎么安裝ZooKeeper服務(wù),內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對(duì)大家能有所幫助。
本示例用的版本是3.4.13
官網(wǎng)下載地址:ZooKeeper下載鏈接
下載完解壓即可,解壓目錄如下
在解壓目錄同級(jí)新建data/logs文件夾,用來(lái)存放ZooKeeper的相關(guān)數(shù)據(jù)和日志
進(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
進(jìn)入安裝目錄下的bin目錄,雙擊zkServer.cmd
雙擊zhCli.cmd連接測(cè)試
關(guān)于Windows中怎么安裝ZooKeeper服務(wù)就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。
免責(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)容。