CentOS安装Kibana

前端之家收集整理的这篇文章主要介绍了CentOS安装Kibana前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文记录一次在CentOS上安装Kibana的过程,使用的版本为kibana-4.6.1~

下载

使用wget来下载kibana的安装包~

[root@dev18 srv]# wget https://download.elastic.co/kibana/kibana/kibana-4.6.1-linux-x86_64.tar.gz
--2017-03-20 10:46:14--  https://download.elastic.co/kibana/kibana/kibana-4.6.1-linux-x86_64.tar.gz
Resolving download.elastic.co... 107.22.208.105,107.21.249.70,54.243.211.74,...
Connecting to download.elastic.co|107.22.208.105|:443... connected.
HTTP request sent,awaiting response... 200 OK
Length: 34114110 (33M) [application/octet-stream]
Saving to: “kibana-4.6.1-linux-x86_64.tar.gz”

100%[====================================================================================================================================================================================================================================>] 34,114,110   359K/s   in 39s     

2017-03-20 10:46:55 (854 KB/s) - “kibana-4.6.1-linux-x86_64.tar.gz” saved [34114110/34114110]

[root@dev18 srv]#

解压

使用tar -zvxf kibana-4.6.1-linux-x86_64.tar.gz 来解压~

[root@dev18 srv]# tar -zvxf kibana-4.6.1-linux-x86_64.tar.gz
... ... 

kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/panels/share.html
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/panels/save.html
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/panels/load.html
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/agg_group.html
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/agg.js
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/add_bucket_agg.js
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/styles/
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/styles/_editor.less
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/nesting_indicator.js
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/editor/agg_add.js
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/index.js
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/styles/
kibana-4.6.1-linux-x86_64/src/plugins/kibana/public/visualize/styles/main.less
kibana-4.6.1-linux-x86_64/src/plugins/kibana/index.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/package.json
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/statusPageMetric.html
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/lib/
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/lib/readStatData.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/lib/formatNumber.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/lib/toTitleCase.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/lib/makeChartOptions.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/statusPage.less
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/statusPage.html
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/statusPageMetric.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/public/statusPage.js
kibana-4.6.1-linux-x86_64/src/plugins/statusPage/index.js
[root@dev18 srv]#

修改解压后的kibana目录名字~

[root@dev18 srv]# mv kibana-4.6.1-linux-x86_64 kibana

启动

进入kibana的bin目录~

[root@dev18 srv]# cd kibana
[root@dev18 kibana]# ll
total 48
drwxrwxr-x  2 1000 1000 4096 Sep  3  2016 bin
drwxrwxr-x  2 1000 1000 4096 Sep  3  2016 config
drwxrwxr-x  2 1000 1000 4096 Sep  3  2016 data
drwxrwxr-x  2 1000 1000 4096 Sep  3  2016 installedPlugins
-rw-rw-r--  1 1000 1000  562 Sep  3  2016 LICENSE.txt
drwxrwxr-x  6 1000 1000 4096 Sep  3  2016 node
drwxrwxr-x 83 1000 1000 4096 Sep  3  2016 node_modules
drwxrwxr-x  3 1000 1000 4096 Sep  3  2016 optimize
-rw-rw-r--  1 1000 1000  701 Sep  3  2016 package.json
-rw-rw-r--  1 1000 1000 2322 Sep  3  2016 README.txt
drwxrwxr-x  8 1000 1000 4096 Sep  3  2016 src
drwxrwxr-x  2 1000 1000 4096 Sep  3  2016 webpackShims
[root@dev18 kibana]# cd bin
[root@dev18 bin]# ll
total 8
-rwxrwxr-x 1 1000 1000 598 Sep  3  2016 kibana
-rw-rw-r-- 1 1000 1000 466 Sep  3  2016 kibana.bat
[root@dev18 bin]#

使用./kibana命令启动kibana

[root@dev18 bin]# ./kibana 
  log   [10:52:49.217] [info][status][plugin:kibana@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.274] [info][status][plugin:elasticsearch@1.0.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [10:52:49.302] [info][status][plugin:kbn_vislib_vis_types@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.323] [info][status][plugin:markdown_vis@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.336] [info][status][plugin:metric_vis@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.342] [info][status][plugin:spyModes@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.348] [info][status][plugin:statusPage@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.365] [info][status][plugin:table_vis@1.0.0] Status changed from uninitialized to green - Ready
  log   [10:52:49.389] [info][listening] Server running at http://0.0.0.0:5601
  log   [10:52:54.411] [info][status][plugin:elasticsearch@1.0.0] Status changed from yellow to yellow - No existing Kibana index found
  log   [10:52:57.797] [info][status][plugin:elasticsearch@1.0.0] Status changed from yellow to green - Kibana index ready

访问UI界面

从上述启动后的信息中可以看出,kibana服务监听的端口为5601

[info][listening] Server running at http://0.0.0.0:5601

访问http:<IP>:5601看访问Kibana界面,如:

点击"status" 查看状态信息,如:

这样,一个简单的kibana安装启动就完成了。

后续,结合LogstahElasticSearch等开始玩起来~~

猜你在找的CentOS相关文章