kafka安装 简版

服务器版本,centos7


root目录下:

JDK安装

rpm -ivh jdk-8u144-linux-x64.rpm

java -version

zookeeper安装

tar -zxvf zookeeper-3.4.6.tar.gz

kafka安装

tar -zxvf kafka_2.11-0.9.0.0.tgz

mv  kafka_2.11-0.9.0.0  kafka

mv zookeeper-3.4.6 zookeeper

mv kafka /usr/local

mv kafka /usr/local


zookeeper环境:

cd /usr/local/zookeeper

cd conf

cp zoo_sample.cfg zoo.cfg

vi zoo.cfg

bin/zkServer.sh start

bin/zkServer.sh status

kafka环境:

cd /usr/local/kafka/config

vi server.properties

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

#关闭防火墙

systemctl disable firewalld

yum remove firewalld -y

bin/kafka-console-consumer.sh –zookeeper localhost:2181 –topic wahahajiemu –from-beginning

安装包下载

链接: https://pan.baidu.com/s/1o8vAkkE 密码: vpbf


Docker环境资料下载(docker file)

链接: https://pan.baidu.com/s/1dEMG9Fz 密码: ku5h

你可能感兴趣的:(kafka安装 简版)