共计 496 个字符,预计需要花费 2 分钟才能阅读完成。
wget https://downloads.apache.org/…
tar -zxvf kafka_2.13-3.3.1.tgz
cd /home/kafka_2.13-3.3.1
vi /home/kafka_2.13-3.3.1/config/server.properties
批改:broker.id=0
容许内部端口连贯
listeners=PLAINTEXT://0.0.0.0:9092
内部代理地址
advertised.listeners=PLAINTEXT://192.168.36.20:9092
应用 kafka-server-start.sh 启动 kafka 服务:
sh /home/zookeeper/bin/zkServer.sh start
nohup /home/kafka_2.13-3.3.1/bin/kafka-server-start.sh /home/kafka_2.13-3.3.1/config/server.properties >/dev/null 2>&1 &
kafka 进行:
bin/kafka-server-stop.sh
bin/zookeeper-server-stop.sh
正文完