将Kibana安装到CentOS系统上

弹性搜索

新增存储库

cat << _EOF_ > /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-2.x]
name=Elasticsearch repository for 2.x packages
baseurl=https://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
_EOF_

安装

yum install elasticsearch java

自动启动设置

systemctl enable elasticsearch

设定

sed -i 's/# network.host: 192.168.0.1/network.host: localhost/' /etc/elasticsearch/elasticsearch.yml

开机

systemctl daemon-reload
systemctl start elasticsearch

Kibana 是一个用于数据可视化的开源工具。

添加存储库

cat << _EOF_ > /etc/yum.repos.d/kibana.repo
[kibana-4.5]
name=Kibana repository for 4.5.x packages
baseurl=http://packages.elastic.co/kibana/4.5/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
_EOF_

安装

yum install kibana

自动启动设置

systemctl enable kibana

设定

sed -i 's/# server.host: "0.0.0.0"/server.host: "localhost"/' /opt/kibana/config/kibana.yml

启动

systemctl start kibana
广告
将在 10 秒后关闭
bannerAds