天天看點

zookeeper的安裝與配置下載下傳安裝啟動

zookeeper的安裝與配置

  • 下載下傳
  • 安裝
  • 啟動

下載下傳

zookeeper 下載下傳很簡單,可以直接到官網下載下傳 :http://zookeeper.apache.org/

這個是下載下傳位址:http://apache.miloslavbrada.cz/zookeeper/

zookeeper的安裝與配置下載下傳安裝啟動

我下載下傳的時候最新版是 3.5.5

安裝

下載下傳之後解壓到自己安裝軟體的目錄中

zookeeper的安裝與配置下載下傳安裝啟動

然後進入 conf 目錄,把 zoo_sample.cfg檔案改名為 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=D:\\data\\zookeeper\\data
dataLogDir=D:\\data\\zookeeper\\log
# 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
#
admin.serverPort=7000
# 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

           

把 dataDir 和 dataLogDir改為自己的目錄,然後添加 admin.serverPort=7000 配置

啟動

配置好以後,進入 bin 檔案夾,輕按兩下 zkServer.cmd 檔案,然後就可以啟動成功

繼續閱讀