1. 下载
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.15.1-x86_64.rpm
2. 安装
rpm -ivh kibana-7.15.1-x86_64.rpm
安装完成后,可以使用systemctl进行start、stop、restart、enable操作了
3. 配置
cd /etc/kibana/
vim kibana.yml
kibana.yml
# 开启外部访问
server.host: "0.0.0.0"
# publicBaseUrl
server.publicBaseUrl: "http://127.0.0.1:5601"
# es访问地址
elasticsearch.hosts: ["http://127.0.0.1:9200"]
# es账号
elasticsearch.username: "elastic"
# es密码
elasticsearch.password: "123456"
4.访问
http://ip:5601
账号密码是配置的es账号密码
4. 常见错误
4.1 Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again.
解决方法是删除es中.kibana索引
curl -u elastic:123456 -XDELETE http://localhost:9200/.kibana*
如果不加星号会出现问题4.2
4.2 {“error”:{“root_cause”:[{“type”:“illegal_argument_exception”,“reason”:“The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead.”}],“type”:“illegal_argument_exception”,“reason”:“The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead.”},“status”:400}
是因为删除索引kibana只是个别名,所以需要加*