安裝JDK環境apache
下載地址:https://www.apache.org/dyn/closer.cgi/zookeeper/vim
wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gzcode
orget
解壓cli
tar -xzvf zookeeper-3.4.11.tar.gzzookeeper
cd conf配置
cp zoo_sample.cfg zoo.cfgcgi
vim zoo.cfg下載
tickTime=2000 initLimit=10 syncLimit=5 dataDir=/tmp/zookeeper clientPort=2181
./bin/zkServer.sh start
./bin/zkServer.sh status
中止服務
./binzkServer.sh stop