標籤:
寫這篇隨筆的原因是公司項目用到了dubbo架構,需要安裝zookeeper,故查詢了一些文章,同時將安裝zookeeper的步驟記錄下來,感謝提供資料的博友,在文章最後具體感謝。
1、概述
ZooKeeper是Hadoop的正式子項目,它是一個針對大型分布式系統的可靠協調系統,提供的功能包括:配置維護、名字服務、分布式同步、組服務等。
ZooKeeper的目標就是封裝好複雜易出錯的關鍵服務,將簡單易用的介面和效能高效、功能穩定的系統提供給使用者。
2、安裝與配置
(1)下載: 在apache的官方網站提供了好多鏡像,然後找到對應的免安裝版本就行了。
(2)安裝:將下載的包解壓放在自己相放的地方,比如:D:\Program Files (x86)\zookeeper-3.4.8
(3)修改配置,路徑是D:\Program Files (x86)\zookeeper-3.4.8\conf:
a、conf下增加一個zoo.cfg
b、檔案內容
# 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 anacknowledgement
syncLimit=5
# the directory where the snapshot isstored. //鏡像資料位元置
dataDir=D:\\data\\zookeeper
#日誌位置
dataLogDir=D:\\logs\\zookeeper
# the port at which the clients willconnect 用戶端串連的連接埠
clientPort=2181
(3)啟動
啟動命令在D:\Program Files (x86)\zookeeper-3.4.8\bin 中
這樣zookeeper 算是安裝成功了
需要感謝http://blog.csdn.net/morning99/article/details/40426133提供的參考文章
ZooKeeper 在windows的安裝