ZooKeeper集群部署
作者:互联网
1.环境搭建
(1)3台虚拟机
(2)CentOS_7.2_x86_64_XD.qcow2 镜像
(3)zookeeper-3.4.14.tar.gz包
(4)gpmall-repo文件夹
2编辑配置
vi /etc/hosts
3配置yum源
mv /etc/yum.repos.d/* /media/
vi /etc/yum.repos.d/local.repo
mkdir /opt/gpmall
mount /dev/cdrom /opt/gpmall/
yum clean all
yum repolist
yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
4解压包三节点
wget http://archive.apache.org/dist/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz
tar -zxvf zookooper-3.4.14.tar.gz
#三节点conf
cd zookeeper/conf
mv mv zoo_sample.cfg zoo.cfg
vim zoo.cfg
#5开启zookeeper
cd /usr/local/src/zookeeper-3.4.14
cd bin/
./zkServer.sh start
./zkServer.sh status
标签:zookeeper,14,tar,部署,ZooKeeper,cd,3.4,集群,yum 来源: https://www.cnblogs.com/hohonb/p/16691734.html