赞
踩
tar -zxf zookeeper-3.4.5-cdh5.14.2.tar.gz
mv zookeeper-3.4.5-cdh5.14.2 soft/zk345
cd soft/zk345/conf/
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
5.1修改dataDir
dataDir=/opt/soft/zk345/data
5.2在文件末尾添加server
server.1=主机地址:2888:3888
vim /etc/profile
6.1添加zookeeper运行环境
- #Zookeeper env
- export ZOOKEEPER_HOME=/opt/soft/zk345
- export PATH=$PATH:$ZOOKEEPER_HOME/bin
source /etc/profile
cd /opt/soft/zk345/sbin/../bin
zkServer.sh start
最后输入命令jps,如果存在进程QuorumPeerMain则安装zookeeper成功!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。