1. 程式人生 > >Elasticsearch及-head,npm,cnpm,kibana安裝步驟:

Elasticsearch及-head,npm,cnpm,kibana安裝步驟:

elasticsearch安裝:

1.開啟https://github.com/medcl/elasticsearch-rtf

點選下載zip

解壓後開啟文件下的Bin目錄,進入cmd命令列輸入elasticsearch.bat

出現這個,然後在網頁上輸入:http://127.0.0.1:9200/

出現即代表安裝成功

 

在config配置檔案下寫入

http.cors.enable:true
http.cors.allow-origin:"*"

 

2.npm和cnpm安裝

npm:搜尋https://nodejs.org/en/

下載對應的版本

在cmd裡執行npm

出現即成功

 

npm速度會很慢,國內就用淘寶映象cnpm:

安裝完npm後在來安裝cnpm:

搜尋cnpm

去安裝

3.elasticsearch-head外掛安裝及使用

開啟https://github.com/mobz/elasticsearch-head

下載後

在cmd命令列裡執行cnpm install     和cnpm run start

 出現這個代表成功

 

這裡顯示未連線,在config裡新增安全策略後

再次啟動會出現

 

檢視版本資訊是5.1.1

4.最後一個配置:下載kibana

我安裝的是5.1.1

https://www.elastic.co/downloads/past-releases/kibana-5-1-1

解壓後在bin目錄下執行cmd命令:kibana.bat

開啟localhost:5601

是這個介面代表你安裝成功  點選Get to work就行了