zookeeper的安装

zoo.cfg四个节点

dataDir=/var/data/zookeeper
server.1=master:2888:3888
server.2=slave1:2888:3888
server.3=slave2:2888:3888
server.4=slave3:2888:3888

mkdir /var/data/zookeeper
cd /var/data/zookeeper
echo 1 > myid
/usr/local/zookeeper/bin/zkServer.sh start
/usr/local/zookeeper/bin/zkServer.sh status

你可能感兴趣的:(zookeeper的安装)