8.6.2
使用 rpm 进行安装
rpm -ivh kibana-8.6.2-x86_64.rpm
chmod o+x /etc/elasticsearch
chmod o+r /etc/elasticsearch
chmod o+x /etc/elasticsearch/certs
chmod o+r /etc/elasticsearch/certs
chmod o+x /etc/elasticsearch/certs/http_ca.crt
chmod o+r /etc/elasticsearch/certs/http_ca.crt
修改前需要知道 elasticsearch 中 kibana_system
账号的密码,如果忘记,可以使用下面命令进行密码重置
/usr/share/elasticsearch/bin/elasticsearch-reset-password -u kibana_system -i
之后会先提示是否确认继续,输入 Y
然后输入两遍新的密码,就修改密码成功了
# 修改 kibana 监听端口和地址
server.port: 5601
server.host: "0.0.0.0"
# 修改为 elaticsearch restful 接口,如果是 https, 则修改为 https
elasticsearch.hosts: ["http://ecs15:9200"]
# elasticesarch kibana_system 用户及其密码
# 此处只能使用 kibana_system 用户进行认证
elasticsearch.username: "kibana_system"
elasticsearch.password: "kibana"
# 配置http_ca.crt
elasticsearch.ssl.certificateAuthorities: [ "/etc/elasticsearch/certs/http_ca.crt" ]
elasticsearch.ssl.verificationMode: certificate
# 设置开启自动启动 kibana
systemctl enable kibana
# 启动 kibana
systemctl start kibana
登录 kibana 页面 使用 elastic 用户进行登录