【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哦

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值