elasticsearch5.0中head连不上es,集群健康值: 未连接

来源:互联网 发布:白光触摸屏编程软件 编辑:程序博客网 时间:2024/06/05 15:36
(1)elasticsearch-5x下的 config/elasticsearch.yml
http.cors.enabled: truehttp.cors.allow-origin: "*"
(2)elasticsearch-head下Gruntfile.js
connect: {        server: {            options: {                hostname: '0.0.0.0',                port: 9100,                base: '.',                keepalive: true            }        }    }   
(3)浏览器问题:chrom不能连,换ie试试
2 1
原创粉丝点击