elasticsearch-rtf 是elasticsearch的一箇中文發行版,目前它最新版本是5.1.1(很久沒有跟新版本了)
一、 elasticsearch-rtf 的安裝
1.github 搜索 elasticsearch-rtf
2.將它克隆或者直接下載到本地,然後解壓
3. 測試運行一下(下面是windows運行)
D:\elasticsearch\elasticsearch-rtf\bin >> elasticsearch.bat(elasticsearch也可以)
[2018-11-28T14:11:06,359][INFO ][o.e.h.HttpServer ] [node-1] publish_address {192.168.1.63:9200}, bound_addresses {[::]:9200}
如果輸出上面這個,就代表成功
4. elasticsearch-head在5.x版本之後就被獨立出去了,所以需要添加一個配置
a.在elasticsearch-rtf 中的 config 文件中找到 elasticsearch.yml
b. 進入文件,添加下面的參數:
http.cors.enabled : true
http.cors.allow-origin : "*"
node.master : true
node.data : true
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, DELETE
http.cors.allow-headers : "X-Requested-With, Content-Type, Content-Length, X-User"
二、elasticsearch-head 的安裝
前置工作:
1.去node.js官網下載 node.js,具體步驟自行百度
2. 然後 將 npm 換成 cnpm(因爲npm下載比較慢) 具體百度
正式開始:
1.github 搜索 elasticsearch-head
2.克隆/下載到本地 --> 解壓
3. 在命令行進入到它的根目錄下,然後運行下面命令
cnpm install
cnpm run start // 運行
Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://localhost:9100 輸出這一段代表成功
三、kibana安裝
1.去elastic官網或者百度搜 kibana,進行下載, 這裏 它的版本必須同elasticsearch-rtf 版本相同,我這裏是5.1.1
2. 下載 --> 解壓
3. 進入bin目錄,運行
kibana
log [06:14:20.520] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
log [06:14:20.557] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [06:14:20.575] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
log [06:14:20.929] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
log [06:14:20.934] [info][listening] Server running at http://0.0.0.0:5601
log [06:14:20.935] [info][status][ui settings] Status changed from uninitialized to yellow - Elasticsearch plugin is yellow
log [06:14:25.603] [info][status][plugin:[email protected]] Status changed from yellow to yellow - No existing Kibana index found
log [06:14:27.095] [info][status][plugin:[email protected]] Status changed from yellow to green - Kibana index ready
log [06:14:27.097] [info][status][ui settings] Status changed from yellow to green - Ready