ES(Elasticsearch)访问:集群健康值: 未连接

ES(Elasticsearch)访问:

http://localhost:9100/
一直提示:集群健康值: 未连接
在这里插入图片描述

原因是:因为给ES配置了加密,用之前的访问链接访问不到,访问的时候需要用户认证。

处理办法:
1.
找到ES的配置文件 elasticsearch.yml 添加

http.cors.allow-headers: Authorization,Content-Type

在这里插入图片描述

可以都添加上
在这里插入图片描述

访问链接不能是之前的

http://localhost:9100

应改为:

http://localhost:9100/?auth_user=elastic&auth_password=123456

看到这应该都懂。

在这里插入图片描述

完美解决了!

欢迎大神指导,可以留言交流!

======================
本人原创文章,转载注明出入!

=================

猜你喜欢

转载自blog.csdn.net/dayonglove2018/article/details/108582314
今日推荐