File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ socket.request.max.bytes=104857600
433
433
- 查看 topic 命令:`bin/kafka-topics.sh --list --zookeeper youmeekhost:2181`
434
434
- 删除 topic:`bin/kafka-topics.sh --delete --topic my-topic-test --zookeeper youmeekhost:2181`
435
435
- 给 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`
437
437
- 此时发送的终端输入一个内容回车,接受消息的终端就可以收到。
438
438
- Spring Boot 依赖:
439
439
You can’t perform that action at this time.
0 commit comments