kafka安装及部署

下载Kafka并解压

kafka_2.11-0.10.1.1.tgz
链接: https://pan.baidu.com/s/1hrJOIPI 密码: 67i9

下载后解压:

1
tar -zxvf kafka_2.11-0.10.1.1.tgz

单机模式启动

1
cd kafka_2.11-0.10.1.1

先启动zookeeper

1
./bin/zookeeper-server-start.sh config/zookeeper.properties

再启动kafka

1
./bin/kafka-server-start.sh config/server.properties