安装kafka

1.修改kafka配置文件server.properties

listeners=PLAINTEXT://:9092

advertised.listeners=PLAINTEXT://公网ip:9092

2.启动kafka

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

原文地址:https://www.cnblogs.com/coderxiaobai/p/15342873.html