文件名称:zookeeper搭建集群
文件大小:18.99MB
文件格式:ZIP
更新时间:2021-05-30 10:02:27
zookeeper
实现zookeeper搭建单机集群,分机器搭建也可以。只要更改这个配置文件就可以了 start(){ sh /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/bin/zkServer.sh start /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/conf/zoo1.cfg sh /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/bin/zkServer.sh start /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/conf/zoo2.cfg sh /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/bin/zkServer.sh start /Users/mac/linuxsoft/zk-cluster/zookeeper-3.4.6/conf/zoo3.cfg } stop(){ kill -9 ${pid}