环境
操作系统:centos7
elasticsearch:5.2.2
kibana:5.2.2
步骤
当初我是为了安装x-pack
,但是呢?需要安装kibana
,所以我顺带也就安装下。
安装步骤也很简单,就是:
①下载压缩包;
②然后解压到自己喜欢的目录,修改配置文件,使其能连接到elasticsearch
;③最后启动kibana
即可。
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.2-linux-x86_64.tar.gz
sha1sum kibana-5.2.2-linux-x86_64.tar.gz
tar -xzf kibana-5.2.2-linux-x86_64.tar.gz
cd kibana/
上面是官网贴出来的方法,但是呐,我是先通过window 10
下载kibana-5.2.2-linux-x86_64.tar.gz
,然后再通过命令rz
,上传到服务器中。
其中sha1sum
校验的文件下载
解压完成后,把解压后的文件kibana-5.2.2-linux-x86_64
,我是放到/usr/programe_files/
。
修改conf/ kibana.yml
中的elasticsearch.url
,因为我的elasticsearch
的配置server.host=192.168.116.131
,所以这里我配置成:
elasticsearch.url=http://192.168.116.131:9200
最后进入到kibana-5.2.2-linux-x86_64
目录,执行:
./bin/kibana
这时它会显示:
log [13:25:55.568] [info][status][plugin:kibana@5.2.2] Status changed from uninitialized to green - Ready
log [13:25:55.715] [info][status][plugin:elasticsearch@5.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [13:25:55.742] [info][status][plugin:console@5.2.2] Status changed from uninitialized to green - Ready
log [13:25:57.079] [info][status][plugin:timelion@5.2.2] Status changed from uninitialized to green - Ready
log [13:25:57.084] [info][listening] Server running at http://192.168.116.131:5601
log [13:25:57.085] [info][status][ui settings] Status changed from uninitialized to yellow - Elasticsearch plugin is yellow
log [13:25:58.727] [error][status][plugin:elasticsearch@5.2.2] Status changed from yellow to red - Request Timeout after 3000ms
log [13:25:58.728] [error][status][ui settings] Status changed from yellow to red - Elasticsearch plugin is red
log [13:26:07.033] [info][status][plugin:elasticsearch@5.2.2] Status changed from red to yellow - No existing Kibana index found
log [13:26:07.034] [info][status][ui settings] Status changed from red to yellow - Elasticsearch plugin is yellow
log [13:26:10.283] [info][status][plugin:elasticsearch@5.2.2] Status changed from yellow to green - Kibana index ready
log [13:26:10.284] [info][status][ui settings] Status changed from yellow to green - Ready
刚开始时我一直报:ui settings Elasticsearch plugin is red
和连接超时30000,后来发现是我elasticsearch.url=http://192.168.116.131:9200
这个地方的IP
地址写错了。我写成了196。
至此完毕。
参考连接:
https://www.elastic.co/guide/en/kibana/current/targz.html