天天看点

Kibana linux下安装

1、kibana简介

Kibana是一个开源的分析与可视化平台,设计出来用于和Elasticsearch一起使用的。你可以用kibana搜索、查看、交互存放在Elasticsearch索引里的数据,使用各种不同的图表、表格、地图等kibana能够很轻易地展示高级数据分析与可视化。

Kibana让我们理解大量数据变得很容易。它简单、基于浏览器的接口使你能快速创建和分享实时展现Elasticsearch查询变化的动态仪表盘。安装Kibana非常快,你可以在几分钟之内安装和开始探索你的Elasticsearch索引数据,不需要写任何代码,没有其他基础软件依赖。

本文只介绍Kibana如何安装使用,更多关于Kibana信息请看官网: 

https://www.elastic.co/guide/en/kibana/index.html

2、kibana安装

2.1 下载

下载地址:https://www.elastic.co/downloads/kibana

备注:如果使用ElasticSearch-2.3.x,可以下载kinaba-4.5.x。linux下命令下载:

curl -L -O https://download.elastic.co/kibana/kibana/kibana--linux-x64.tar.gz           
  • 1

2.2 解压

解压:tar zxvf kibana-4.5.1-linux-x64.tar.gz

2.3 配置

到config/kibana.yml目录下,般修改标注的这三个参数即可。

server.port: 5601

# The host to bind the server to.
server.host: ""

# If you are running kibana behind a proxy, and want to mount it at a path,
# specify that path here. The basePath can't end in a slash.
# server.basePath: ""

# The Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://"  #这里是elasticsearch的访问地址                      注意:                    
编辑配置文件在这里/opt/kibana/config/kibana.yml 就修改下面几项就行

#######################################################################################################

server.port: 5601   端口

server.host: "0.0.0.0"   监听

elasticsearch.url: "http://192.168.48.131:9200" elasticsearch地址

######################################################################################################

          
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

2.4 启动

到bin目录下,启动即可。

./kibana  //不能关闭终端

nohup  ./kibana > /nohub.out &  //可关闭终端,在nohup.out中查看log           
  • 1
  • 2
  • 3

2.5 访问

在浏览器中访问:http://xxxx:5601/

继续阅读