https://www.elastic.co/downloads/elasticsearch中点击下载,根据本身的操做系统来选择。node
下载完后解压,到elasticsearch-6.2.2\bin执行elasticsearch.bat文件。观察localhost:9200是否正常显示git
1.先安装node.js。https://nodejs.org/en/。建议安装好以后配置到环境变量之中github
2.安装gruntnpm
npm install -g grunt-cli
3.下载head插件。https://github.com/mobz/elasticsearch-head 压缩包的形式下载。固然也能够clone下来,都同样的。解压。windows
4.修改elasticsearch-6.2.2\config中的elasticsearch.yml文件app
cluster.name: my-applicationcors
node.name: node-1elasticsearch
network.host: 0.0.0.0grunt
http.port: 9200this
http.cors.enabled: true
http.cors.allow-origin: "*"
5.在head解压的目录下,执行
npm install
执行完以后执行
grunt server
最后经过localhost:9100查看
备注:elasticsearch-head-master\_site中的app.js中的this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://localhost:9200";修改head对应的elasticsearch的uri。要对应,要对应,要对应。在elasticsearch-head-master中的Gruntfile.js中的port: 9100能够修改port更改head进入的界面。