查看“Kafka”的源代码
←
Kafka
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
https://kafka.apache.org/ https://www.bilibili.com/video/BV1Xy4y1G7zA 一、[[为什么使用消息队列]] 二、[[消息队列的流派]] 三、[[Kafka的基本知识]] 四、[[Kafka 中主题和分区的概念]] 集群 准备3个 server.properties 文件<syntaxhighlight lang="shell-session"> [root@localhost ~]# cd /usr/local/kafka/kafka_2.11-2.4.0/config/ [root@localhost config]# cp server.properties server1.properties [root@localhost config]# cp server.properties server2.properties </syntaxhighlight> *server.properties <syntaxhighlight lang="apacheconf"> broker.id=0 listeners=PLAINTEXT://192.168.137.200:9092 log.dirs=/usr/local/kafka/data/kafka-logs </syntaxhighlight> *server1.properties <syntaxhighlight lang="apacheconf"> broker.id=1 listeners=PLAINTEXT://192.168.137.200:9093 log.dirs=/usr/local/kafka/data/kafka-logs-1 </syntaxhighlight> *server2.properties <syntaxhighlight lang="apacheconf"> broker.id=2 listeners=PLAINTEXT://192.168.137.200:9094 log.dirs=/usr/local/kafka/data/kafka-logs-2 </syntaxhighlight>启动<syntaxhighlight lang="shell-session"> [root@localhost bin]# ./kafka-server-start.sh -daemon ../config/server.properties [root@localhost bin]# ./kafka-server-start.sh -daemon ../config/server1.properties [root@localhost bin]# ./kafka-server-start.sh -daemon ../config/server2.properties </syntaxhighlight>搭建完成后通过查看 zk 中的 /brokers/ids 是否启动成功
返回至
Kafka
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
Spring Boot 2 零基础入门
Spring Cloud
Spring Boot
设计模式之禅
VUE
Vuex
Maven
算法
技能树
Wireshark
IntelliJ IDEA
ElasticSearch
VirtualBox
软考
正则表达式
程序员精讲
软件设计师精讲
初级程序员 历年真题
C
SQL
Java
FFmpeg
Redis
Kafka
MySQL
Spring
Docker
JMeter
Apache
Linux
Windows
Git
ZooKeeper
设计模式
Python
MyBatis
软件
数学
PHP
IntelliJ IDEA
CS基础知识
网络
项目
未分类
MediaWiki
镜像
问题
健身
国债
英语
烹饪
常见术语
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息