RedHat6.6(Centos6)安装Zookeeper3

1、下载zookeeper-3.4.7.tar.gz,我的是放到/home/zookeeper,输入命令,tar -zxvf zookeeper-3.4.7.tar.gz

2、复制解压后的conf目录下的zoo_sample.cfg,并命名为zoo.cfg

3、修改zoo.cfg配置,如下
dataDir=/home/zookeeper/zookeeper-3.4.7/data
dataLogDir=/home/zookeeper/zookeeper-3.4.7/logs

4、启动,进入目录/home/zookeeper/zookeeper-3.4.7/bin,输入命令,./zkServer.sh start

你可能感兴趣的:(RedHat6.6(Centos6)安装Zookeeper3)