ES Head插件安装

1、安装Nodejs

下载地址:https://nodejs.org/en/download/

 

 安装成功

 

2、在安装nodejs成功的基础上安装grunt

npm install -g grunt-cli

操作成功.

3、下载head插件

地址:https://github.com/mobz/elasticsearch-head

下载成功后,解压缩文件,并修改根目录下Gruntfile.js,修改connect节点增加hostname:'*',如下:

修成成功之后,打开命令行,定位到当前解压缩的目录,分别执行以下命令:

npm install
npm run start

官网有教程.

接着运行http://localhost:9100/

 

 注意:需要开启es的跨域功能,js里面也有提示

开发es服务端目录下的elasticsearch.yml,增加如下配置并重启服务:

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

 

 此时head插件安装完毕.

posted @ 2022-07-18 10:55  郑小超  阅读(2418)  评论(0编辑  收藏  举报