2017-02-10 125 views
0

我有一個Centos 7 Virtualbox虛擬機,我安裝了Elasticsearch 5.x和Kibana 5.x.一切順利,兩項服務都開始成功。如果我在VM上執行curl http://192.168.1.192:5601,所有工作都正常,但如果我嘗試從主機訪問Kibana Web Interface,則無法訪問。Kibana 5.x不能在局域網上訪問

VM的

網絡接口設置爲bridbe舉辦爲wlan0,主機和虛擬機AR連接到同一個路由器:主機IP:192.168.1.190,虛擬機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]

我在做什麼錯?

回答

0

如果您的CentOS上有防火牆,則必須打開kibana端口(5601)。

用於查看防火牆狀態使用:

sudo systemctl status firewalld.service 
+0

我沒有任何防火牆軟件啓用 – kitz

+0

你確定嗎?測試VM(OS)的開放端口。在Windows中使用 –

+0

可以使用以下工具:https://techtalk.gfi.com/scan-open-ports-in-windows-a-quick-guide/ –

相關問題