首页 > 代码库 > Linux:安装Zookeeper

Linux:安装Zookeeper

1.下载

wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.3-beta/zookeeper-3.5.3-beta.tar.gz

2.解压

tar -xvf zookeeper-3.5.3-beta.tar.gz -C /usr/local/zookeeper-3.5.3

3.修改zook.cfg

cp zoo_sample.cfg zoo.cfg

vim zoo.cfg(增加dataLogDir=/usr/local/zookeeper/log)

4.设置环境变量

export ZOOKEEPER_HOME=/usr/local/zookeeper-3.5.3

export PATH=$PATH:$ZOOKEEPER_HOME/bin

5.启动

./zkServer.sh start

 

Linux:安装Zookeeper