网上关于安装教程太多了,今天在window平台跑一跑,很香~~node
gopkg.in/olivere/elastic.v5
以上版本安装head须要安装node和gruntgit
`git clone git://github.com/mobz/elasticsearch-head.git` `cd elasticsearch-head` `npm install` `npm run start` `open` [http:// localhost:9100 /](http://localhost:9100/)
配置 elasticsearch.yml文件github
在此文件尾端加上一下代码便可,记得要重启Elasticsearch http.cors.enabled: true http.cors.allow-origin: "*"
修改 elasticsearch-head 目录下的 Gruntfile.js 文件,在 options 属性内增长 hostname,设置为 0.0.0.0
connect: { server: { options: { hostname: '0.0.0.0', port: 9100, base: '.', keepalive: true } } }
以上步骤完成运行效果npm