一,下載 能夠到官網下載html
官方主頁: https://zookeeper.apache.org/java
二,安裝apache
解壓便可ide
三,配置ui
須要java環境,在加壓出來的文件夾中找到zoo_sample.cfg文件,重命名爲zoo.cfgthis
# 時長單位爲毫秒,爲zk使用的基本時間度量單位 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 # 用於配置存儲快照文件的目錄 dataDir=E:/java/tools/zookeeper-3.4.14/data/zookeeper # zk服務進程監聽的TCP端口,默認狀況下,服務端會監聽2181端口 clientPort=2181 # the maximum number of client connections. # increase this if you need to handle more clients #maxClientCnxns=60 # # 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
四,啓動spa
在bin目錄打開命令行,輸入zkServer.cmd,回車便可命令行