Zookeeper 介绍

1. Zookeeper 介绍

Zookeeper 是 Apache Hadoop 的子项目,是一个树型的目录服务,支持变更推送,适合作为Dubbox 服务的注册中心,工业强度较高,可用于生产环境。

2. Zookeeper 在Linux系统的安装

Zookeeper的安装:
第一步:安装jdk

第二步:解压缩zookeeper压缩包
tar-zxvf zookeeper-3.4.6.tar.gz

第三步:将conf文件夹下zoo_sample.cfg复制一份,改名为zoo.cfg
cd conf
mv zoo_sample.cfg zoo.cfg

第四步:配置Zookeeper,主要配置dataDir和clientPort参数,
dataDir 指定真是的目录,datadir目录中的data末级目录如果不存在,也会自动生成。
clientPort参数使用默认值2181即可。

第五步:
启动zookeeper:bin/zkServer.sh start
关闭zookeeper:bin/zkServer.sh stop
查看zookeeper状态:bin/zkServer.sh status

注意要关闭linux的防火墙。
暂时关闭:service iptables stop
永久关闭:chkconfig iptables off(重启之后才生效)

猜你喜欢

转载自blog.csdn.net/W_litttle/article/details/83793534