Centos install Zookeeper

Centos7安装Zookeeper

wget http://mirrors.ustc.edu.cn/apache/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
tar xf zookeeper-3.4.9.tar.gz -C /etc/
mv /etc/zookeeper-3.4.9 /etc/zookeeper
cd /etc/zookeeper/conf/
mv zoo_sample.cfg zoo.cfg
编辑zoo.cfg
server.1=10.141.166.187:2888:3888
dataDir=/var/lib/zookeeper

echo 1 > /var/lib/zookeeper/myid

/etc/zookeeper/bin/zkServer.sh start
/etc/zookeeper/bin/zkServer.sh status
*****
Written by ysicing on 10 July 2017