赞
踩
Zookeeper集群中的节点有三个角色:
/usr/local/zookeeper/zkdata/zk1# echo 1 > myid
/usr/local/zookeeper/zkdata/zk2# echo 2 > myid
/usr/local/zookeeper/zkdata/zk3# echo 3 > myid
/usr/local/zookeeper/zkdata/zk4# echo 4 > myid
cp zoo.cfg zoox.cfg
server.<id>=<ip>:<port>:<port>
./bin/zkServer.sh start ../conf/zoox.cfg
./bin/zkServer.sh status ../conf/zoox.cfg
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。