cd /d G:\\kafka\_2.11-0.10.0.1\\bin\\windows
kafka-console-consumer.bat --zookeeper localhost:2181 --topic test
然后就可以在Producer控制臺窗口輸入消息了。在消息輸入過后,很快Consumer窗口就會顯示出Producer發送的消息:

