==============================zookeeper安装=====================
mkdir /soft
上传zookeeper的tar包
tar xf zookeeper-3.4.10.tar.gz
mv zookeeper-3.4.10 /usr/local
ln -s zookeeper-3.4.10 zookeeper
cd /usr/local/zookeeper/conf/
mv zoo_sample.cfg zoo.cfg
vim zoo.cfg
dataDir=/usr/local/zookeeper/data
dataLogDir=/usr/local/zookeeper/logs
vim /etc/profile
export ZOOKEEPER_HOME=/usr/local/zookeeper/
export PATH=$ZOOKEEPER_HOME/bin:$PATH
export PATH
source /etc/profile
启动
zkServer.sh start
查看状态
zkServer.sh status
关闭
zkServer.sh stop
重启
zkServer.sh reload
zookeeper安装
原文:http://blog.51cto.com/guoshaoliang789/2107553