window如何安装head插件

head插件是给Elasticsearch提供的图形化界面

1,下载地址

head插件下载地址

2,解压

3,安装node js,安装cnpm

npm install ‐g cnpm ‐‐registry=https://registry.npm.taobao.org

4,将grunt安装为全局命令 。Grunt是基于Node.js的项目构建工具。它可以自动运行你所设定的任务。

npm install -g grunt-cli

5,安装依赖

cnpm install

注意:在安装依赖的时候,要在package.json目录下

6,启动head

进入head目录启动head,在命令提示符下输入:

grunt server

7,在安装完之后打开localhost://9100会出现以下的界面

在这里插入图片描述

注意:如果连接不上elasticsearch,需要解决跨域问题,找到elasticsearch的目录,进入conf目录,找到elasticsearch.yml,打开,在下面加入这两行,解决跨域问题,再重新启动elasticsearch

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

—得不到的永远都在骚动,被偏爱的都有恃无恐。

猜你喜欢

转载自blog.csdn.net/qq_41346335/article/details/86650421