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

相关文章
相关标签/搜索