1.安裝elasticsearch-rtf
elasticsearch中文發(fā)行版,針對(duì)中文集成了相關(guān)插件
2.插件elasticsearch-head
可以在web上操作el的數(shù)據(jù)庫(kù)
github鏈接
安裝完之后啟動(dòng)服務(wù)發(fā)現(xiàn)無(wú)法和elasticsearch-rtf連接,因?yàn)閑lasticsearch-rtf默認(rèn)不允許第三方服務(wù)連接,可以更改配置
config目錄下編輯yml文件
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET,POST, PUT,DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"
然后重啟服務(wù)器就可以連接elasticsearch了
3. 插件kibana(相當(dāng)于PostMain)
通過(guò) Kibana,您可以對(duì)自己的 Elasticsearch 進(jìn)行可視化,還可以在 Elastic Stack 中進(jìn)行導(dǎo)航,這樣您便可以進(jìn)行各種操作了,從跟蹤查詢負(fù)載,到理解請(qǐng)求如何流經(jīng)您的整個(gè)應(yīng)用,都能輕松完成。
要下載和rtf一樣版本的kibana
下載地址