我有一个Centos 7 Virtualbox虚拟机,我在其中安装了Elasticsearch 5.x和Kibana 5.x。一切正常,两个服务都成功启动。如果我在VM上执行curl http://192.168.1.192:5601,一切正常,但如果我尝试从主机访问Kibana Web界面,这是无法访问的。
VM的网络接口设置为桥接到主机wlan0,主机和vm连接到同一路由器: host ip:192.168.1.190,vm 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被禁用,并且我没有在该虚拟机上安装任何防火墙软件。此外,我还可以从主机ssh到vm
我做错了什么?
发布于 2017-02-11 06:27:15
如果您的CentOs上有防火墙,则必须打开kibana端口(5601)。
要查看您的防火墙状态,请使用:
sudo systemctl status firewalld.servicehttps://stackoverflow.com/questions/42169232
复制相似问题