ES集群监控,请优先使用谷歌浏览器
1.如下图,在红框内输入ES访问地址即可
2.如下图,若谷歌浏览器提示如下图,请点击【加载不安全脚本】即可
3.如果连接ES,在控制台出现跨域错误
Access to XMLHttpRequest at 'http://localhost:9200/' from origin 'http://localhost:9100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
请在elasticsearch.yml添加,然后重启es即可
# head插件设置
http.cors.enabled: true
http.cors.allow-origin: "*"
# #设置可以访问的ip 这里全部设置通过
4.产品采用elasticsearch-head开源项目,作为ES集群监控的插件,更多使用资料请上网查询
5.如果在谷歌浏览器提示拦截,请放开