我有一个ubuntu14服务器,它有两个ip(192.168.1.131和192.168.100.131)。我们的一些团队使用192.168.1.131访问服务器,其他团队使用192.168.100.131。
现在我想在服务器上运行kafka,我的server.properties如下:
advertised.host.name = 192.168.1.131
然后我运行Kafka,我们可以使用Kafka192.168.1.131。但它不适用于192.168.100.131。
有没有办法同时使用Kafka192.168.1.131和192.168.100.131?
谢谢。
1条答案
按热度按时间p1tboqfb1#
在kafka 0.10.x中,可以编辑server.properties,如下所示: