ZooKeeper单机模式入门
一、下载ZooKeeper
http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html#sc_Download
二、单机模式使用Zookeeper
1.解压ZooKeepertar包;
2.在解压后的目录里,创建conf/zoo.cfg,设置好关键配置
tickTime
thebasictimeunitinmillisecondsusedbyZooKeeper.ItisusedtodoheartbeatsandtheminimumsessiontimeoutwillbetwicethetickTime.
dataDir
thelocationtostorethein-memorydatabasesnapshotsand,unlessspecifiedotherwise,thetransactionlogofupdatestothedatabase.
clientPort
theporttolistenforclientconnections
3.启动ZooKeeperServer
bin/zkServer.shstart
4.客户端连接ZooKeeperServer
bin/zkCli.sh-server127.0.0.1:2181
接着通过help查看可用的操作命令;
相关推荐
Kafka 2020-09-18
CobingLiu 2020-06-16
MrZhangAdd 2020-04-18
CobingLiu 2020-03-23
pfjia 2020-02-18
yixietianxia 2020-02-10
amwayy 2020-02-01
lilygg 2020-01-29
deyu 2020-01-10
deyu 2020-01-04
CobingLiu 2019-12-28
pfjia 2019-12-28
houzengjiang 2014-06-13
潘威威 2014-05-13
deyu 2019-12-18
yixietianxia 2019-11-13
Wisher 2019-11-04
潘威威 2017-09-30