只需要改server.properties
listeners=PLAINTEXT:// 内网的ip地址和9092端口
advertised.listeners=PLAINTEXT://外网的ip的地址和9092端口
advertised.host.name= 内网的ip地址
zookeeper.connect=外网的IP地址和2181端口
changefl 2020-03-17 09:32 原文
只需要改server.properties
listeners=PLAINTEXT:// 内网的ip地址和9092端口
advertised.listeners=PLAINTEXT://外网的ip的地址和9092端口
advertised.host.name= 内网的ip地址
zookeeper.connect=外网的IP地址和2181端口