kafka的安装配置(1)

1.先进行zookeeper的安装xian详见

https://blog.csdn.net/liuyunshengsir/article/details/81085195

2.下载kafka

http://archive.apache.org/dist/kafka/1.0.1/kafka_2.12-1.0.1.tgz

3.解压

tar -xzf kafka_2.12-1.0.1.ygz

4.修改配置文件

修改的文件路径为kafka_2.12-1.0.1/config/server.properties

#listeners=PLAINTEXT://:9092
listeners=PLAINTEXT://172.16.0.132:9092

#zookeeper.connect=localhost:2181
zookeeper.connect=172.16.0.132:2181/kafka

5.启动kafka

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

猜你喜欢

转载自blog.csdn.net/liuyunshengsir/article/details/81085374