Zookeeper在Ubuntu下安装配置

1.下载Zookeeper
apache-zookeeper-3.5.5-bin.tar.gz
提取码:y9wm
2. 解压Zookeeper
tar -zxf apache-zookeeper-3.5.5-bin.tar.gz
3. zookeeper目录下创建新文件夹 data
Zookeeper在Ubuntu下安装配置_第1张图片
4. 进入conf目录下将zoo_sample.cfg拷贝副本并更名为 zoo.cfg
Zookeeper在Ubuntu下安装配置_第2张图片
5. 修改zoo.cfg

a@DataServer:~/softhome/zookeeper-355/conf$ sudo gedit conf/zoo.cfg


修改
Zookeeper在Ubuntu下安装配置_第3张图片6. 修改/etx/profile

a@DataServer:~/softhome/zookeeper-355/conf$ sudo gedit /etc/profile

在这里插入图片描述
添加

export ZK_HOME=/home/a/softhome/zookeeper-355
export PATH=$ZK_HOME/bin:$PATH

Zookeeper在Ubuntu下安装配置_第4张图片保存完毕后执行 /etc/profile

a@DataServer:~/softhome/zookeeper-355/conf$ source /etc/profile

7.修改启动zookeeper

a@DataServer:~/softhome/zookeeper-355/conf$ zkServer.sh start


8.jps查看进程

a@DataServer:~/softhome/zookeeper-355/conf$ jps

安装成功

9.停止zookeeper

a@DataServer:~/softhome/zookeeper-355/conf$ zkServer.sh stop

你可能感兴趣的:(Zookeeper,Ubuntu)