centos安装Kibana

77 阅读1分钟

一、下载

下载地址:www.elastic.co/downloads/k…

历史版本:www.elastic.co/downloads/p…

如果机器可以访问外网,也可以直接 wget 下载

shell> wget wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.4-linux-x86_64.tar.gz

关于版本的选择,可以查看官方文档 Elasticsearch 与 Kibana 的兼容性:www.elastic.co/support/mat…

二、安装

解压

shell> tar -zxvf kibana-5.6.4-linux-x86_64.tar.gz -C /usr/local/

配置

shell> cd /usr/local/kibana-5.6.4-linux-x86_64/config/
shell> vim kibana.yml

编辑以下内容

# 默认值5601,没有需要可以不修改
server.port: 5601
# 允许远程访问,也可以直接设置为“0.0.0.0”
server.host: "192.168.1.10"
# 默认值http://localhost:9200
elasticsearch.url: "http://localhost:9200"

三、启动


直接前台启动

shell> cd /usr/local/kibana-5.6.4-linux-x86_64/
shell> ./bin/kibana

指定配置文件启动

Kibana 默认情况下从 $KIBANA_HOME/config/kibana.yml 加载配置文件,也可以通过-c--config选项指定配置文件

shell> ./bin/kibana -c /path/to/config/kibana.yml

后台启动

shell> nohup ./bin/kibana >/dev/null 2>&1 &

四、停止kibanan

直接搜kibanan进程,会发现找不到

shell> ps aux|grep kibana
root      5566  0.0  0.0 112712   968 pts/0    S+   02:25   0:00 grep --color=auto kibana
shell> ps -ef|grep kibana
root      5615  1856  0 02:25 pts/0    00:00:00 grep --color=auto kibana

我们可以通过下面的方式停止kibanan进程

  1. 通过端口号查找kibanan进程
shell> lsof -i:5601
  1. 找到 PID 后,杀掉进程即可停止 kibana
shell> kill -9 6030

本文由 简悦 SimpRead 转码, 原文地址 segmentfault.com