上一章节【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哦