1、安装node
https://nodejs.org/en/download/
2、安装grunt
npm install -g grunt-cli
3、安装Elasticsearch-Head
从https://github.com/mobz/elasticsearch-head下载,解压文件,在文件elasticsearch-head-master中,修改Gruntfile.js文件,添加允许所有域名访问。
下载完成之后在Elasticsearch-Head目录下
npm install 安装
npm tun start 启动服务
localhost:9100 验证安装成功
在验证之前需要启动es服务,如果启动之后仍然无法链接,在elasticsearch的配置文件中心elasticsearch.yaml中加入以下代码,配置允许跨域。
http.cors.enabled: true
http.cors.allow-origin: "*"