您的位置首页生活快答

如何安装zookeeper-3.4.11

如何安装zookeeper-3.4.11

的有关信息介绍如下:

如何安装zookeeper-3.4.11

准备三台节点。分别是192.168.20.11elk-01192.168.20.12elk-02192.168.20.13elk-03下载zookeeper-3.4.11

修改hosts解析

解压伐陵到/opt目录tar zxf zookeeper-3.4.11.tar.gzmv zookeeper-3.4.11 /opt/zookerper[root@elk-01 bin]# ll /opt/zookeeper/total 1592drwxr-xr-x 2 502 games 170 Aug 13 10:40 bin-rw-r--r-- 1 502 games 87943 Nov 2 2017 build.xmldrwxr-xr-x 2 502 games 92 Aug 13 10:25 confdrwxr-xr-x 10 502 games 130 Nov 2 2017 contri

三台修改配置文件cp /opt/zookeeper/conf/zoo_sample.cfg /opt/zookeeper/conf/zoo.cfg

在三物川台节点增加不同的idmkdir /usr/local/zookeeper/dataecho "1" > /opt/zookeeper/data/myid

三台廊速孝节点启动zookeeper/opt/zookeeper/bin/zkServer.sh start

三台节点zookeeper检查状态,安装完成角色分别为:leader、follower、follower