1.下载地址 https://github.com/mobz/elasticsearch-head
2.点击下载,然后直接解压到本地
3.点击index页面,直接运行
4.页面展示如下
5.es已经启动成功,但是head连不上,查看f12,发现request method 变成options,
6.设置es,找到elasticsearch.yml文件
7.在elasticsearch.yml文件中添加下面两行代码,解决跨域问题,然后重新启动es
http.cors.enabled: true
http.cors.allow-origin: “*”