安装JDK1.8(包括)以上版本
安装ElasticSearch
ElasticSearch下载地址:
https://www.elastic.co/downloads/elasticsearch

双击elasticsearch.bat

http://localhost:9200

以windows服务启动
elasticsearch-service.bat install
查看任务管理器,找到elastcisearch右击选中开始,就能把服务启动了

安装Grunt
下载NodeJS
下载地址:
https://nodejs.org/en/download/

安装NodeJS
下载完直接安装,一直确定

检验是否安装成功:node -v

安装grunt命令

安装ElasticSearch-Head
下载ElasticSearch-Head
下载地址:https://github.com/mobz/elasticsearch-head

解压

安装pathomjs
进入head文件夹下,执行命令:npm install 进行安装pathomjs

如果安装失败:设置成淘宝的镜像重新安装
npm config set registry https://registry.npm.taobao.org
启动Head插件
在刚才的文件夹下启动:grunt server

修改elasticsearch.yml配置文件
打开elasticsearch安装目录/config/elasticsearch.yml,添加如下两行
http.cors.enabled: true http.cors.allow-origin: "*"

然后访问:http://localhost:9100/
