【Spring整合Elasticsearch7.x】(第二章)管理Elasticsearch工具kibana

上一章節【Spring整合Elasticsearch7.x】(第一章)部署和啓動Elasticsearch(windows、Linux、docker)】

這章我們說一下怎麼像mysql這些數據庫我們Navicat 工具查看數據分析的

這裏我們使用的是官方配套的kibana

1.下載對應版本的kibana

官方下載

這裏記得kibana和Elasticsearch的版本要對應,官方的提醒是這麼說的,如果沒有就找past releases.裏面找對應的版本吧

2.安裝和啓動

解壓對應的文件夾

我這裏是windows,直接解壓到D:\elasticsearch下,版本根據你自己的

 

打開config文件夾下的kibana.yml

把對應的註釋#去掉就好,改成我們需要的內容

# Kibana is served by a back end server. This setting specifies the port to use.
# 修改端口
#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: "localhost"
#設置server.host,這裏是本機,所以設置localhost,如果在服務器請設置對應的
server.host: "localhost"

# The URLs of the Elasticsearch instances to use for all your queries.
# 設置Elasticsearch的訪問url
#elasticsearch.hosts: ["http://localhost:9200"]

# Specifies locale to be used for all localizable strings, dates and number formats.
# Supported languages are the following: English - en , by default , Chinese - zh-CN .
#i18n.locale: "en"
#這裏可以設置爲中文
i18n.locale: "zh-CN"

然後雙擊bin文件下的kibana.bat啓動即可

打開瀏覽器,訪問

http://localhost:5601/

成功的頁面

Ps:如果Elasticsearch需要權限登錄的話

打開config文件夾下的kibana.yml,加上這個配置

#使用初始用戶kibana
elasticsearch.username: "kibana"
elasticsearch.password: "輸入你設置的密碼"

打開頁面時候,這裏需要輸入賬號和密碼,這裏有點不同的是需要輸入elastic和你設置的密碼,而不是kibana哦

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章