前提:需要提前下載JDK
1.下載地址:https://kafka.apache.org/
2.需要先啟動ZooKeeper服務器(可以通過與kafka打包在一起的便捷腳本來快速簡單地創建一個單節點ZooKeeper實例。)
命令: bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
3.啟動Kafka服務器
bin\windows\kafka-server-start.bat .\config\server.properties