1:首先要確保機器已經安裝好java環境,並且配置好環境變數
2:下載Zookeeper
http://apache.fayea.com/zookeeper/current/

下載後,解壓縮到硬碟,我這裡解壓到了 D:WorkSoftwarezookeeper_3.4.9

解壓縮
在 D:WorkSoftwarezookeeper_3.4.9 下建立一個空資料夾 data

建立data資料夾
進入到conf目錄,然後複製zoo_sample.cfg為zoo.cfg

複製zoo_sample.cfg
編輯dataDir部分

編輯dataDir
啟動Zookeeper,進入 bin 目錄,執行 zkServer.cmd

啟動Zookeeper

預設繫結埠2181
作者:sphsyv
連結:https://www.jianshu.com/p/f7037105db46
來源:簡書