Skip to content

Commit e7fcdb4

Browse files
committed
2018-03-13 补充 kafka
1 parent d578c44 commit e7fcdb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

markdown-file/Kafka-Install-And-Settings.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
- topic:可以理解为:消息主题、消息标签
1616
- 业界常用的 docker 镜像:
1717
- [wurstmeister/kafka-docker(不断更新,优先)](https://github.com/wurstmeister/kafka-docker/)
18+
- 运行的机子不要小于 2G 内存
19+
- 修改 docker-compose.yml 中参数 KAFKA_ADVERTISED_HOST_NAME,改为你宿主机的 IP 地址
20+
- 先启动 zookeeper:`docker-compose up -d`
21+
- 添加 kafka 节点:`docker-compose scale kafka=3`
22+
- 停止容器:`docker-compose stop`
1823
- [spotify/docker-kafka](https://github.com/spotify/docker-kafka)
1924

2025

0 commit comments

Comments
 (0)