1、 下载ES
https://www.elastic.co/cn/downloads/past-releases#elasticsearch
选择版本6.2.4
2、 启动
双击bin目录下双击elasticsearch.bat即可,输入地址在浏览器中输入“http://127.0.0.1:9200/”,出现一下界面,表示启动成功。
3、 安装ElasticSearch管理插件
安装Head插件需要nodejs和grunt:
(1)nodejs安装:官网https://nodejs.org/en/download/,选择64位的window的msi安装版本
安装完成后,使用node -v命令查看是否安装成功。
(2)grunt安装:cmd到nodejs根目录下,输入指令:npm install -g grunt-cli ,等待安装完成。
grunt -version确认
4、安装Head插件
(1)Head下载:
注意:git下载一顺水安装即可,在git bash里输入git命令
git clone https://github.com/mobz/elasticsearch-head.git C:/Users/76491/Desktop/ESTool/elasticsaerch-head
(2)安装Head插件:
cd C:/Users/76491/Desktop/ESTool/elasticsaerch-head
npm install
注意:安装会遇到问题,按照提示依次输入命令:
npm audit fix
npm audit