前提条件
- 安装jdk
- 安装zookeeper,windows安装zookeeper
下载
kafka官网: http://kafka.apache.org/
解压
解压出来的目录
修改配置
找到kafka安装目录下,config>>server.properties
修改broker id
修改zookeeper连接地址
启动
.\bin\windows\kafka-server-start.bat .\config\server.properties
kafka官网: http://kafka.apache.org/
解压出来的目录
找到kafka安装目录下,config>>server.properties
修改broker id
修改zookeeper连接地址
.\bin\windows\kafka-server-start.bat .\config\server.properties