3-elasticsearch-head插件安装

安装可视化工具插件

安装elasticsearch谷歌插件到谷歌浏览器

在谷歌商店中搜索elasticsearch,找到ElasticSearch Head,并安装。

安装完成后,点击图标,即可打开elasticsearch客户端界面

启动elasticsearch,并输入连接地址即可看到连接信息

其他方式安装可视化工具,通过压缩下载可视化工具的压缩包,之后通过nodejs进行安装。

可视化工具git地址:https://github.com/mobz/elasticsearch-head

下载完成后按照以下步骤进行即可:

使用该种方式会出先跨域问题,需要解决跨域问题。

修改config中的elasticsearch.yml文件:

  • 找到Network,这是和网络相关的,新增加如下内容
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
# 配置跨域
http.cors.enabled: true
http.cors.allow-origin: "*"

posted @ 2022-05-12 21:29  Tedisaname  阅读(21)  评论(0)    收藏  举报