实行 tar -zxvf apache-zookeeper-3.8.4-bin.tar.gz 命令解压缩压缩包
进入解压缩文件并创建data 和 logs文件夹
mkdir data
mkdir logs
进入conf文件夹 复制zookeeper的配置模板zoo_sample.cfg
修改配置文件zoo.cfg
vim zoo.cfg
#数据文件夹
dataDir=/usr/local/zookeeper/apache-zookeeper-3.8.4-bin/data
#日志文件夹
dataLogDir=/usr/local/zookeeper/apache-zookeeper-3.8.4-bin/logs
vim /etc/profile 进入体系配置文件,将以下内容插入进入,生存退出
#zookeeper-3.8.4配 置
export ZOOKEEPER_HOME=/usr/local/zookeeper/apache-zookeeper-3.8.4-bin/
export PATH= Z O O K E E P E R H O M E / b i n : ZOOKEEPER_HOME/bin: ZOOKEEPERHOME/binATH
export PATH