Zookeeper--Zookeeper单机安装

参考

https://www.cnblogs.com/lsdb/p/7297731.html

https://zookeeper.apache.org/doc/r3.4.13/zookeeperStarted.html#sc_InstallingSingleMode

 

前提

  JDK 6及其以上

 

 

安装

下载安装文件并上传

将下载好的 zookeeper-x.x.x.tar.gz 上传到目标机器,如 /usr/local/src ,当前下载的版本为3.4.9

 

解压

 

创建软连接

 

创建配置文件

 

启动

 

查看状态

 

通过CLI连接到Zookeeper

 

 

相关配置解释(官方链接)

tickTime

the basic time unit in milliseconds used by ZooKeeper. It is used to do heartbeats and the minimum session timeout will be twice the tickTime.

dataDir

the location to store the in-memory database snapshots and, unless specified otherwise, the transaction log of updates to the database.

clientPort

the port to listen for client connections

 

posted @ 2019-02-13 17:20  MicroCat  阅读(163)  评论(0编辑  收藏  举报