安装Elasticsearch-head插件

阅读 98

2022-04-02

1、运行源码

安装配置好node和git,然后运行下列命令

git clone https://github.com/mobz/elasticsearch-head.git

cd elasticsearch-head
# 下载依赖
npm install --registry=https://registry.npm.taobao.org
# 启动项目
npm run start

image-20220401113141226

运行完成后,在浏览器输入http://localhost:9100/访问

image-20220401113058747

在上图所示的位置输入elasticsearch访问地址连接

如果连接不上,或者看不到数据,修改elasticsearch的config/elasticsearch.yml 配置文件添加如下内容:

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

然后重启es即可

2、浏览器安装插件

从ElasticSearch5.x开始,不再支持插件方式启动,必须作为独立服务器运行

如果能访问,去谷歌插件市场下载https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm/

离线安装包地址:https://yuyunyaohui.lanzoul.com/ieP1N02ehxxa 密码:bnfr

文件下载完成后,打开谷歌浏览器的扩展程序页面,直接拖入下载后的文件即可安装

image-20220401115008277

如果安装不了,将文件后缀改为zip再拖入

安装完成后,点击如图所示的位置即可打开

image-20220401115301202

精彩评论(0)

0 0 举报