一、问题描述
SpringBoot 集成 Elasticsearch 时报错 Elasticsearch built-in security features are not enabled:文章来源:https://www.toymoban.com/news/detail-553325.html
2022-03-25 18:23:50.589 WARN 58032 --- [/O dispatcher 1] org.elasticsearch.client.RestClient : request [GET http://192.168.1.38:9200/] returned 1 warnings: [299 Elasticsearch-7.15.2-93d5a7f6192e8a1a12e154a2b81bf6fa7309da0c "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.15/security-minimal-setup.html to enable security."]
二、解决方法
在 elasticsearch.yml 配置 xpack.security.enabled 为 false,然后重启 Elasticsearch:文章来源地址https://www.toymoban.com/news/detail-553325.html
xpack.security.enabled: false
到了这里,关于Elasticsearch报错Elasticsearch built-in security features are not enabled的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!