|NO.Z.00006|——————————|Deployment|——|Hadoop&ElasticSearch集中式日志分析系统.v06|——|Elasticsearch.v06|ElasticS


一、部署kibana服务
### --- 下载kibana版本包

~~~     # 下载kibana服务版本包:使用root用户部署
[root@hadoop02 software]# wget -c https://artifacts.elastic.co/downloads/kibana/kibana-7.3.0-linux-x86_64.tar.gz
### --- 部署kibana服务

~~~     # 解压版本包,并修改目录名称
[root@hadoop02 software]# tar -zxvf kibana-7.3.0-linux-x86_64.tar.gz -C ../servers/es/
[root@hadoop02 ~]# mv /opt/yanqi/servers/es/kibana-7.3.0-linux-x86_64/ /opt/yanqi/servers/es/kibana
### --- 改变kibana目录用户账号

~~~     # 修改kibana目录的用户权限为es
[root@hadoop02 ~]# chown -R es /opt/yanqi/servers/es/kibana/
~~~     # 授予kibana目录777权限
[root@hadoop02 ~]# chmod -R 777 /opt/yanqi/servers/es/kibana/
二、kibana配置文件参数修改
### --- 修改kibana配置文件参数

[root@hadoop02 ~]# vim /opt/yanqi/servers/es/kibana/config/kibana.yml 
~~~     第2行:修改端口
server.port: 5601
~~~     第7行:访问ip,elasticsearch服务器ip
server.host: "hadoop02"
~~~     第28行:所有查询的Elasticsearch实例的url。 
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://hadoop01:9200","http://hadoop02:9200","http://hadoop03:9200"]
三、启动kibana服务
### --- 配置完成启动:
### --- 通过web-UI访问kibana服务:http://hadoop02:5601

~~~     # 使用es用户启动kibana服务
[es@hadoop02 ~]$ /opt/yanqi/servers/es/kibana/bin/kibana
~~~     输出参数:没有error说明启动成功:警告可以忽略不计
[info][listening] Server running at http://hadoop02:5601
[info][server][Kibana][http] http server running
[info][status][plugin:spaces@7.3.0] Status changed from yellow to green - Ready


四、kidbana使用页面
### --- 选择左侧的DevTools菜单,即可进入控制台页面:
### --- 在页面右侧,我们就可以输入请求,访问Elasticsearch了。

~~~     扩展kibana dev tools快捷键:
~~~     ctrl+enter 提交请求;ctrl+i 自动缩进

                 
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart                                                                                                                                                    ——W.S.Landor
 

相关