---恢复内容开始---
参考 https://www.jianshu.com/p/36d7f97a20cd
1.下载安装
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
2.更改配置
vi Gruntfile.js 改文件端口为9100
vi _site/app.js 改下面的http://localhost:9100 确保是9100端口
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://localhost:9100";
3.启动
elasticsearch-head/node_modules/grunt/bin/grunt server &
4.如果如上图没连接
sudo vi /usr/local/Cellar/elasticsearch/6.6.1/libexec/config/elasticsearch.yml
添加
http.cors.enabled: true
http.cors.allow-origin: "*"
5.重启es
---恢复内容结束---