网上关于安装教程太多了,今天在window平台跑一跑,很香~~
gopkg.in/olivere/elastic.v5
以上版本安装head需要安装node和grunt
`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文件
在此文件尾端加上一下代码即可,记得要重启Elasticsearchhttp.cors.enabled: truehttp.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 } } }
以上步骤完成运行效果
文章来源:智云一二三科技
文章标题:elasticsearch & elasticsearch-head安装 [window 平台]
文章地址:https://www.zhihuclub.com/6709.shtml