centos7-启动kafka

Index of /apache/kafka/3.2.0icon-default.png?t=M4ADhttps://mirrors.tuna.tsinghua.edu.cn/apache/kafka/3.2.0/

1、解压软件包kafka_2.13-3.2.0.tgz

tar -zxvf kafka_2.13-3.2.0.tgz

2、切换至解压目录;

cd kafka_2.13-3.2.0/

3、启动zookeeper;

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

4、启动kafka,完成。

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

附:也可在启动时加入进程守护,使其在后台运行。

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


版权声明:本文为qq_28913223原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。