Skip to content

Commit c60af8f

Browse files
committed
🚧 kafka
1 parent 252600b commit c60af8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ socket.request.max.bytes=104857600
433433
- 查看 topic 命令:`bin/kafka-topics.sh --list --zookeeper youmeekhost:2181`
434434
- 删除 topic:`bin/kafka-topics.sh --delete --topic my-topic-test --zookeeper youmeekhost:2181`
435435
- 给 topic 发送消息命令:`bin/kafka-console-producer.sh --broker-list youmeekhost:9092 --topic my-topic-test`,然后在出现交互输入框的时候输入你要发送的内容
436-
- 再开一个终端,进入 kafka 容器,接受消息:`bin/kafka-console-consumer.sh --bootstrap-server youmeekhost:9092 --topic my-topic-test --from-beginning`
436+
- 再开一个终端,进入 kafka 容器,接受消息:`cd /usr/local/kafka && bin/kafka-console-consumer.sh --bootstrap-server youmeekhost:9092 --topic my-topic-test --from-beginning`
437437
- 此时发送的终端输入一个内容回车,接受消息的终端就可以收到。
438438
- Spring Boot 依赖:
439439

0 commit comments

Comments
 (0)