Using config: /Users/dongfucai/local/zoo1/zookeeper-3.4.12/bin/../conf/zoo.cfg
Usage: ./zoo1/zookeeper-3.4.12/bin/zkServer.sh {start|start-foreground|stop|restart|status|upgrade|print-cmd}
➜  local ./zoo1/zookeeper-3.4.12/bin/zkServer.sh start zoo1/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: zoo1/zookeeper-3.4.12/conf/zoo.cfg
Starting zookeeper ... STARTED
➜  local ./zoo2/zookeeper-3.4.12/bin/zkServer.sh start zoo2/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: zoo2/zookeeper-3.4.12/conf/zoo.cfg
Starting zookeeper ... STARTED
➜  local ./zoo3/zookeeper-3.4.12/bin/zkServer.sh start zoo3/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: zoo3/zookeeper-3.4.12/conf/zoo.cfg
Starting zookeeper ... STARTED

 

 

➜  local ./zoo1/zookeeper-3.4.12/bin/zkServer.sh status ./zoo1/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: ./zoo1/zookeeper-3.4.12/conf/zoo.cfg
Mode: follower
➜  local ./zoo2/zookeeper-3.4.12/bin/zkServer.sh status ./zoo2/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: ./zoo2/zookeeper-3.4.12/conf/zoo.cfg
Mode: leader
➜  local ./zoo3/zookeeper-3.4.12/bin/zkServer.sh status ./zoo3/zookeeper-3.4.12/conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: ./zoo3/zookeeper-3.4.12/conf/zoo.cfg
Mode: follower

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐