首页 > 代码库 > centos安装zookeeper

centos安装zookeeper

一、下载

  下载地址

http://www.apache.org/dist/zookeeper/

  下载包

zookeeper-3.4.9.tar.gz

二、安装

  解压安装包

tar xvf zookeeper-3.4.9.tar.gz

  移动到指定目录,并重命名为zookeeper

mv zookeeper-3.4.9 /usr/java/zookeeper

  进入conf目录配置zookeeper

cd /usr/java/zookeeper/conf
cp zoo_sample.cfg zoo.cfg

三、启动

  进入bin目录启动

cd /usr/java/zookeeper/bin
./zkServer.sh start

centos安装zookeeper