http://mirror.bit.edu.cn/apache/
1.wget 'http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz'
2. sudo mkdir /usr/local/zookeeper
3. sudo cp zookeeper-3.3.6.tar.gz /usr/local/zookeeper/
4.cd /usr/local/zookeeper/
5.sudo tar zxvf zookeeper-3.3.6.tar.gz
6.sudo rm -rf zookeeper-3.3.6.tar.gz
7. sudo cp conf/zoo_sample.cfg conf/zoo.cfg
8. 加入环境变量vim /etc/profile
export ZOOKEEPER_HOME=/usr/local/zookeeper/zookeeper-3.3.6
export PATH=$ZOOKEEPER_HOME/bin:$PATH
9.启动zookeeper服务
zkServer.sh start
10 启动zookeeper命令行客户端,能连接上说明安装成功
zkCli.sh -server 127.0.0.1:2181