0

我有一个 Centos 7 Virtualbox 虚拟机,我在其中安装了 Elasticsearch 5.x 和 Kibana 5.x。一切都好,两个服务都成功启动了。如果我curl http://192.168.1.192:5601在 VM 上运行一切正常,但如果我尝试从主机访问 Kibana Web 界面,则无法访问。

VM的网络接口设置为bridbe到主机wlan0,主机和vm ar连接到同一个路由器:host ip:, 192.168.1.190vm ip:192.168.1.192

在我的 kibana.yml 我有:

server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "0.0.0.0"

# Enables you to specify a path to mount Kibana at if you are running behind a proxy. This only affects
# the URLs generated by Kibana, your proxy is expected to remove the basePath value before forwarding requests
# to Kibana. This setting cannot end in a slash.
#server.basePath: ""

# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576

# The Kibana server's name.  This is used for display purposes.
server.name: "elkmaster1"

# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://localhost:9200"

Selinux 已禁用,firewalld 已禁用,并且我没有在该 VM 上安装任何防火墙软件。[另外,我可以从主机 ssh 进入 vm]

我究竟做错了什么?

4

1 回答 1

0

如果您的 CentO 上有防火墙,则必须打开 kibana 端口(5601)。

查看您的防火墙状态使用:

sudo systemctl status firewalld.service
于 2017-02-10T22:27:14.517 回答