- 下载
https://archive.apache.org/dist/kafka/2.4.1/kafka_2.11-2.4.1.tgz - 解压

- 改配置(kafka_2.11-2.4.0\config\server.properties)

- 启动&测试
在bin/window目录,命令执行bat脚本
.\zookeeper-server-start.bat ..\..\config\zookeeper.properties
.\kafka-server-start.bat ..\..\config\server.properties
.\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
.\kafka-topics.bat --list --zookeeper localhost:2181
.\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning
.\kafka-console-producer.bat --broker-list localhost:9092 --topic test