1.在vmWareWorkstation全新安装CentOS-7-x86_64-Minimal-2009
image.png2.安装jdk
yum install maven vim lrzsz -y
3.下载kafka安装包
image.png下载 上传 解压 image.png
4.正片开始
cd kafka/config
vim server.properties
0 1 2
broker.id=2
// 9092 9093 9094
listeners=PLAINTEXT://192.168.65.60:9094
//kafka-logs kafka-logs-1 kafka-logs-2
log.dir=/usr/local/data/kafka-logs-2
cp server.properties server.properties2
cp server.properties server.properties1
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
bin/kafka-server-start.sh -daemon config/server.properties
bin/kafka-server-start.sh -daemon config/server.properties1
bin/kafka-server-start.sh -daemon config/server.properties2
bin/zookeeper-shell.sh 127.0.0.1:2181
ls /brokers/ids
image.png
网友评论