参考官网教程
github tar压缩包下载地址
方法一(尝试失败)
创建文件 kibana.repo 在 /etc/yum.repos.d/ 或 /etc/zypp/repos.d/ 目录下
sudo vim kibana.repo
[kibana-6.x]
name=Kibana repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
根据我的版本号修改为
[kibana-6.8.12]
name=Kibana repository for 6.8.12 packages
baseurl=https://artifacts.elastic.co/packages/6.8.12/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
And your repository is ready for use. You can now install Kibana with one of the following commands(接下来根据linux系统选择一个命令安装):
sudo yum install kibana
sudo dnf install kibana
sudo zypper install kibana
方法二(失败)
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.8.12-x86_64.rpm
shasum -a 512 kibana-6.8.12-x86_64.rpm
sudo rpm --install kibana-6.8.12-x86_64.rpm --force --nodeps
–force --nodeps解决rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
–nodeps就是安装时不检查依赖关系
–force就是强制安装
安装后发现缺少config文件夹再次失败!安装在/usr/share/kibana
方法三
首先卸载上一个
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.8.12-linux-x86_64.tar.gz
sha1sum kibana-6.8.12-linux-x86_64.tar.gz
tar -xzf kibana-6.8.12-linux-x86_64.tar.gz
cd kibana/
修改配置
cd /config
vim kibana.yml
#修改如下配置
server.port: 5601
server.host: "0.0.0.0"
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://127.0.0.1:9200"]
kibana.index: ".kibana"
elasticsearch.username: "es"
elasticsearch.password: "es"
启动
cd bin
./kibana