(02)window-Elasticsearch安装及head插件安装

windows安装es

1.官网下载安装es

2.安装head插件

https://www.cnblogs.com/hts-technology/p/8477258.html

安装node.js node-v查看版本

安装grunt  npm install -g grunt-cli grunt -version查看版本

3.修改配置文件

进入安装目录下的config目录,修改elasticsearch.yml文件.在文件的末尾加入以下代码

http.port: 9200

http.cors.enabled: true

http.cors.allow-origin: "*"

cluster.name: wali

node.name: matser

node.master: true

-->重启es

 

在https://github.com/mobz/elasticsearch-head中下载head插件,选择下载zip

 

 

解压到指定文件夹下,G:\elasticsearch-6.6.2\elasticsearch-head-master  进入该文件夹,修改G:\elasticsearch-6.6.2\elasticsearch-head-master\Gruntfile.js 在对应的位置加上hostname:'*'

 

(02)window-Elasticsearch安装及head插件安装

 

在G:\elasticsearch-6.6.2\elasticsearch-head-master  下执行npm install 安装完成后执行grunt server 或者npm run start 运行head插件,如果不成功重新安装grunt。成功如下

 

(02)window-Elasticsearch安装及head插件安装

 

浏览器下访问http://localhost:9100/

(02)window-Elasticsearch安装及head插件安装