【linux】zookeeper3.9.1下载脚本

发布时间:2024年01月11日

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

?

?



vi /etc/profile

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

?

保存设置?

source /etc/profile

?

文章来源:https://blog.csdn.net/David_Hzy/article/details/135518680
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。