1.下载zookeeper,本次教程使用的版本zookeeper-3.4.5.tar.gz,下载后进行解压操作,通过tar -zxvf zookeeper-3.4.5.tar.gz这个命令来完成解压

创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于网站设计制作、成都做网站、郊区网络推广、小程序制作、郊区网络营销、郊区企业策划、郊区品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联公司为所有大学生创业者提供郊区建站搭建服务,24小时服务热线:18982081108,官方网址:www.cdcxhl.com
2.解压完成后,删除压缩包

3.进入zokkeeper.3.4.5目录,删除不必要文件和目录



4.修改配置文件名称,并添加相关配置信息



5.复制zookeeper到其他节点,在这里准备了3台机器作为安装zookeeper使用,分别是node6,node7,node8

6.分别在三个节点中创建配置文件中配置的目录及文件,每一个节点中的myid中的内容需要与配置文件中配置的值相一致




7.启动zookeeper,通过./zkServer.sh start命令

8.通过./zkServer.sh statust命令查看启动状态node6,node7,node8的状态分别如下



9.通过脚本的方式来启动zookeeper,脚本内容如下
#!/bin/bash
for host in node6 node7 node8
do
echo "$host is starting ...."
ssh $host "/zookeeper-3.4.5/bin/zkServer.sh start"
done
本文标题:zookeeper图文安装
网站路径:
http://cdxtjz.cn/article/pegiph.html