ES的客户端工具Head安装

1.点击下载elasticsearch-head 

2.解压文件,在head文件里,cmd 。为head打上依赖

  

在控制台中输入指令:npm install

如果下载出错了,再输入指令,重新下载

 

3.上一步成功后输入指令:npm run start

启动head

注意:如果用head客户端来操作ES,因为存在跨域问题,所以需要在ES的配置文件elasticsearch.yml中添加

http.cors.enabled: true
http.cors.allow-origin: "*"

原文地址:https://www.cnblogs.com/bigbigxiao/p/12079761.html