【linux】zookeeper3.9.1下载脚本

centOS7

cd /usr/local
 
mkdir zookeeper
 
cd /usr/local/zookeeper

wget https://mirrors.aliyun.com/apache/zookeeper/zookeeper-3.9.1/apache-zookeeper-3.9.1-bin.tar.gz

tar -xzvf apache-zookeeper-3.9.1-bin.tar.gz

cd apache-zookeeper-3.9.1-bin/conf/
 
cp zoo_sample.cfg zoo.cfg


改两个文件 

vim zoo.cfg
 
dataDir=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin/data
 
dataLogDir=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin/logs

【linux】zookeeper3.9.1下载脚本_第1张图片



vi /etc/profile

export ZOOKEEPER_HOME=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin
 
export PATH=$ZOOKEEPER_HOME/bin:$PATH

【linux】zookeeper3.9.1下载脚本_第2张图片

保存设置 

source /etc/profile

你可能感兴趣的:(linux,zookeeper,debian)