欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

Linux kafka 安装和部署

最编程 2024-10-15 11:48:15
...

1.kafka是一个分布式的,去中心化的,高吞吐低延迟,订阅模式的消息队列系统

  确保要有jdk与zookeeper安装配置

2.下载kafka安装包

http://archive.apache.org/dist/kafka/2.4.1/kafka_2.12-2.4.1.tgz

此时可以wget http://archive.apache.org/dist/kafka/2.4.1/kafka_2.12-2.4.1.tgz

也可以Windows下载上传

下载慢可以用阿里云镜像

apache-kafka-3.6.2安装包下载_开源镜像站-阿里云

3.解压  命令:tar -zxvf kafka_2.12-3.8.0.tgz ./

创建软连接  命令:  ln -s /export/server/kafka_2.12-3.8.0 /export/server/kafka

4.修改kafka的config内的server.properties文件

命令:  cd /export/server/kafka_2.12-3.8.0/config

修改1:

修改2:

修改3:

修改4:

5.复制文件到其他节点   命令:   scp -r /export/server/kafka_2.12-3.8.0  wtk1:`pwd`/

6.创建软连接到其他节点

命令:   ln -s /export/server/kafka_2.12-3.8.0 /export/server/kafka

7.修改其他节点的卡夫卡的`config文件

修改1:

修改2:

7.启动卡夫卡服务

命令:   nohup /export/server/kafka_2.12-3.8.0/bin/kafka-server-start.sh start /export/server/kafka/config/server.properties 2>&1 >> /export/server/kafka/kafka-server.log &

上一篇: 特殊类设计

下一篇: Lua 例程