参阅网址
http://blog.chinaunix.net/uid-26275986-id-3957283.html
http://blog.csdn.net/cruise_h/article/details/19046357
停止:zkServer.sh stop启动:zkServer.sh start查看进程:zkServer.sh status
zookeeper:leader,follower 自动选举,并不见得是master主机。
/conf/zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/usr/local/zookeeper/data
datalogDir=/usr/local/zookeeper/log
clientPort=2181
server.1=master:2888:3888
server.2=slave1:2888:3888
server.3=slave2:2888:3888
/usr/local/zookeeper/data/ touch myid
1 2 3
转载于:https://blog.51cto.com/wyshnc/1709634