从官方网站下载rpm包
wget https://artifacts.elastic.co/downloads/kibana/kibana-8.3.3-x86_64.rpm
安装rpm包
[root@kibana ~]# rpm -ivh kibana-8.3.3-x86_64.rpm
warning: kibana-8.3.3-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:kibana-8.3.3-1 ################################# [100%]
Creating kibana group... OK
Creating kibana user... OK
Created Kibana keystore in /etc/kibana/kibana.keystore
[root@kibana ~]#
到ES服务器上重置kibana-system用户密码
[root@es-10 ~]# /usr/share/elasticsearch/bin/elasticsearch-reset-password -u kibana_system
修改/etc/kibana/kibana.yml配置
[root@kibana ~]# cat /etc/kibana/kibana.yml|egrep -v "^$|#"
server.port: 5601 #kibana端口
server.host: "172.16.200.13" #kibana服务器IP
server.publicBaseUrl: "http://172.16.200.13:5601" #对外访问地址
elasticsearch.hosts: ["https://172.16.200.10:9200"] #ES主服务器IP端口
elasticsearch.username: "kibana_system" #连接ES的用户
elasticsearch.password: "xxxxxxxxxxxxxxx" #kibana_system用户密码
elasticsearch.ssl.certificate: /etc/kibana/certs/http_ca.crt #es自动生成的ca证书拷过来
elasticsearch.ssl.certificateAuthorities: [ "/etc/kibana/certs/http_ca.crt" ]
elasticsearch.ssl.verificationMode: certificate
logging:
appenders:
file:
type: file
fileName: /var/log/kibana/kibana.log
layout:
type: json
root:
appenders:
- default
- file
pid.file: /run/kibana/kibana.pid
i18n.locale: "zh-CN" #kibana设置中文
[root@kibana ~]#
启动kibana
[root@kibana ~]# systemctl start kibana
浏览器访问:http://172.16.200.13:5601 用户名使用ES用户(elastic)登录