【ElasticSearch】02_ElasticSearch之Head的安装配置

1 下载并安装head插件

1.1 安装git软件,或者安装git工具
npm install –y git
git clone https://github.com/mobz/elasticsearch-head.git
1.2 安装grunt
cd elasticsearch-head
npm install -g grunt --registry=https://registry.npm.taobao.org
1.3 安装插件
npm install

在elasticsearch-head目录下node_modules/grunt下如果没有grunt二进制程序,需要执行:npm install grunt --save

1.4 修改connect配置节点

修改配置 elasticsearch-headGruntfile.js文件

image

1.5 配置本机ElasticSearch的IP端口

修改 _site/app.js 修改http://localhost:9200字段到本机ES端口与IP

image

1.6 启动elasticsearch-head服务
cd elasticsearch-head/
npm run start

启动成功后,如下:

image

posted @ 2023-04-14 16:24  烟墨  阅读(33)  评论(0)    收藏  举报