美文网首页
elasticsearch安装及插件安装

elasticsearch安装及插件安装

作者: 人生苦短啊 | 来源:发表于2019-11-22 12:56 被阅读0次

1.安装elasticsearch-rtf

github链接

elasticsearch中文发行版,针对中文集成了相关插件

2.插件elasticsearch-head

可以在web上操作el的数据库
github链接
安装完之后启动服务发现无法和elasticsearch-rtf连接,因为elasticsearch-rtf默认不允许第三方服务连接,可以更改配置
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"

然后重启服务器就可以连接elasticsearch了

3. 插件kibana(相当于PostMain)

通过 Kibana,您可以对自己的 Elasticsearch 进行可视化,还可以在 Elastic Stack 中进行导航,这样您便可以进行各种操作了,从跟踪查询负载,到理解请求如何流经您的整个应用,都能轻松完成。

要下载和rtf一样版本的kibana
下载地址

相关文章

网友评论

      本文标题:elasticsearch安装及插件安装

      本文链接:https://www.haomeiwen.com/subject/glpfwctx.html