下载地址:www.elastic.co/downloads/k…node
历史版本:www.elastic.co/downloads/p…linux
若是机器能够访问外网,也能够直接wget下载shell
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…vim
另外,官网还有一段描述:centos
Kibana should be configured to run against an Elasticsearch node of the same version. This is the officially supported configuration.bash
Running different major version releases of Kibana and Elasticsearch (e.g. Kibana 5.x and Elasticsearch 2.x) is not supported, nor is running a minor version of Kibana that is newer than the version of Elasticsearch (e.g. Kibana 5.1 and Elasticsearch 5.0).markdown
Running a minor version of Elasticsearch that is higher than Kibana will generally work in order to faciliate an upgrade process where Elasticsearch is upgraded first (e.g. Kibana 5.0 and Elasticsearch 5.1). In this configuration, a warning will be logged on Kibana server startup, so it’s only meant to be temporary until Kibana is upgraded to the same version as Elasticsearch.elasticsearch
Running different patch version releases of Kibana and Elasticsearch (e.g. Kibana 5.0.0 and Elasticsearch 5.0.1) is generally supported, though we encourage users to run the same versions of Kibana and Elasticsearch down to the patch version.tcp
总之,建议你们安装时选择彻底一致的版本号,这样就必定不会有问题oop
解压
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://192.168.1.10: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 &
复制代码
可是经过上面的命令启动会有个问题,若是想中止kibana会找不到进程
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
复制代码
能够经过以下几种方式找到进程并杀死
shell> lsof -i:5601
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 6030 root 9u IPv4 49052 0t0 TCP *:esmagent (LISTEN)
node 6030 root 11u IPv4 50383 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65303 (ESTABLISHED)
node 6030 root 12u IPv4 50384 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65304 (ESTABLISHED)
node 6030 root 13u IPv4 50390 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65306 (ESTABLISHED)
node 6030 root 14u IPv4 50399 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65309 (ESTABLISHED)
node 6030 root 15u IPv4 50401 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65310 (ESTABLISHED)
node 6030 root 16u IPv4 50392 0t0 TCP VM_2_24_centos:esmagent->111.196.219.22:65307 (ESTABLISHED)
复制代码
shell> netstat -tunlp|grep 5601
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 6030/./bin/../node/
复制代码
shell> fuser -n tcp 5601
5601/tcp: 6030
复制代码
shell> kill -9 6030 复制代码