apache kafka-无法绑定到外部ip地址

6vl6ewon  于 2021-06-08  发布在  Kafka
关注(0)|答案(0)|浏览(446)

我已经在ubuntu14.04虚拟机中安装了一个基本的kafka/zookeper安装。
测试生产商/消费者在当地工作良好。我尝试从局域网中的另一个主机访问我的kafka代理,但尽管我使用配置了server.properties,但它仍然无法工作

listeners=PLAINTEXT://192.168.1.220:9092

    # The port the socket server listens on
    #port=9092

    # Hostname the broker will bind to. If not set, the server will bind to all interfaces
    host.name=192.168.1.220

和生产商的财产

metadata.broker.list=192.168.1.220:9092

但这不管用。。你知道吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题