启动Zookeeper
zkserver
启动服务
.\bin\windows\kafka-server-start.bat .\config\server.properties
启动生产者
kafka-console-producer.bat --broker-list localhost:9092 --topic user
启动消防者监听消息
kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic user
微信扫一扫
zkserver
.\bin\windows\kafka-server-start.bat .\config\server.properties
kafka-console-producer.bat --broker-list localhost:9092 --topic user
kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic user
相关推荐