Linux下安裝配置Zookeeper

前提

安裝JDK環境apache

下載

下載地址:https://www.apache.org/dyn/closer.cgi/zookeeper/vim

wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gzcode

orget

wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gzit

解壓cli

tar -xzvf zookeeper-3.4.11.tar.gzzookeeper

配置

cd conf配置

cp zoo_sample.cfg zoo.cfgcgi

vim zoo.cfg下載

tickTime=2000  
initLimit=10  
syncLimit=5  
dataDir=/tmp/zookeeper  
clientPort=2181

啓動

./bin/zkServer.sh start

./bin/zkServer.sh status

中止服務

./binzkServer.sh stop

相關文章
相關標籤/搜索