1. kafka下载2.2.0
wget http://mirror.bit.edu.cn/apache/kafka/2.2.0/kafka_2.11-2.2.0.tgz
tar -xzvf kafka_2.11-2.2.0.tgz
mv kafka_2.11-2.2.0 /usr/local/kafka
2.修改配置文件
mkdir -p /usr/local/kafka/log/kafka #创建日志目录
vi server.properties
advertised.listeners=PLAINTEXT://192.168.3.131:9092 #设置端口信息
3.启动kafka
1.先启动zookeeper
/usr/local/kafka/bin/zookeeper-server-start.sh /usr/local/kafka/config/zookeeper.properties
2.启动kafka
/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties
4.springboot与kafka集成
待续