【zheng环境准备】安装zookeeper
1、zookeeper下载
1 wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz 2 3 tar -xzf zookeeper-3.4.13.tar.gz 4 5 cd zookeeper-3.4.13 6 7 cd conf 8 9 cp z00_sample.cfg zoo.cfg
2、设置环境变量
1 export ZOOKEEPER_INSTALL=/home/zookeeper-3.4.13 2 3 export PATH=$PATH:$ZOOKEEPER_INSTALL/bin
3、启动
1 cd bin 2 3 ./zkServer.sh start
4、测试
1 ./zkCli.sh