码迷,mamicode.com
首页 > 其他好文 > 详细

zookeeper安装

时间:2018-04-25 10:20:57      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:zookeeper 安装

==============================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安装

标签:zookeeper 安装

原文地址:http://blog.51cto.com/guoshaoliang789/2107553

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!