kafka安装配置

安装zookeeper

  1. 下载安装包
    zookeeper下载
  2. 在/opt/下解压
[root@manager129 zookeeper]# pwd
/opt/zookeeper
[root@manager129 zookeeper]# ls
bin  conf  data  docs  lib  LICENSE.txt  NOTICE.txt  README.md  README_packaging.txt
  1. 配置文件 zoo.cfg
[root@manager129 conf]# ls
configuration.xsl  log4j.properties  zoo.cfg  zoo_sample.cfg

配置说明

# The number of milliseconds of each tick 
# 服务器心跳时间
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
# 投票选举新的leader的初始化时间
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# 数据目录
dataDir=/opt/zookeeper/data
# 日志目录
dataLogDir=/temp/zookeeper/log
# 对外服务器端口
clientPort=2181
上一篇:Zookeeper集群安装


下一篇:那个只能在win7的扫雷游戏,你能通关吗?今天用Python教大家,上号!!!