下載地址: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 複製代碼