问题描述
我正在尝试在 VM 上设置 Kafka Conflient,并已按照此处的所有步骤进行操作 - https://docs.confluent.io/platform/current/quickstart/ce-quickstart.html.
I am trying to setup a Kafka Conflient on VM and have followed all steps here - https://docs.confluent.io/platform/current/quickstart/ce-quickstart.html.
但就我而言,http://:9021
无法访问.
But in my case http://<hostname>:9021
is not getting accessible.
推荐答案
VM 主机名无法从 VM 外部解析
The VM hostname wouldn't be resolvable from outside of the VM
您需要从 VM 转发(请参阅您使用的特定 VM 工具的文档)到主机并访问 http://localhost:9021
You need to port forward (refer to the documentation for the specific VM tool you use) from the VM to the host and access http://localhost:9021
就安装而言,您可以查看我为设置 Confluent Platform 而创建的存储库在流浪使用他们的 Ansible 存储库(如果您只想要控制中心,则需要更改一些文件)
As far as installation goes, you can look at a repo I created for setting up Confluent Platform in Vagrantwith their Ansible repository (you'll need to change some files if you only want Control Center)
这篇关于在 VM 之外无法访问控制中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!