構建dubbo分佈式平臺-window安裝zookeeper註冊中心

1. 簡介java

ZooKeeper是Hadoop的正式子項目,它是一個針對大型分佈式系統的可靠協調系統,提供的功能包括:配置維護、名字服務、分佈式同步、組服務等。ZooKeeper的目標就是封裝好複雜易出錯的關鍵服務,將簡單易用的接口和性能高效、功能穩定的系統提供給用戶。apache

 

2. 安裝和配置分佈式

在apache的官方網站提供了好多鏡像下載地址,而後找到對應的版本,目前最新的是3.3.6oop

下載地址:性能

http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz網站

 

Windows下安裝日誌

把下載的zookeeper的文件解壓到指定目錄blog

D:\ant\zookeeper-3.3.6>接口

 

修改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 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

注:若是啓動有報錯提示cfg文件有錯誤,能夠用zoo_sample.cfg內內容替代也是能夠的

進入到bin目錄,而且啓動zkServer.cmd,這個腳本中會啓動一個java進程

也能夠雙擊zkServer.cmd啓動便可:

相關文章
相關標籤/搜索