1.导入pgp key
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
2.添加repo
vi /etc/yum.repos.d/kibana.repo
内容如下
[kibana-5.x]
name=Kibana repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
3.安装kibana
yum install -y kibana
systemctl enable kibana #设为开机启动
systemctl start kibana #启动服务
4.公开服务
vi /etc/kibana/kibana.yml
内容如下
server.host: 0.0.0.0
重启服务
systemctl restart kibana
5.访问服务 chrome访问 http://192.168.152.138:5601/