【问题标题】:ElasticSearch Node Prompting For AuthenticationElasticSearch 节点提示进行身份验证
【发布时间】:2020-01-22 21:21:00
【问题描述】:

我按照以下说明安装Elasticsearch 7.5.2 on windows。我对设置所做的唯一修改是选择基本许可证而不是试用许可证。安装后,我在端口 9200 上向我的 elasticsearch 节点发出了一个 get 请求,我收到以下响应:

{
error: {
root_cause: [
{
type: "security_exception",
reason: "missing authentication credentials for REST request [/]",
header: {
WWW-Authenticate: "Basic realm="security" charset="UTF-8""
}
}
],
type: "security_exception",
reason: "missing authentication credentials for REST request [/]",
header: {
WWW-Authenticate: "Basic realm="security" charset="UTF-8""
}
},
status: 401
}

我已尝试使用凭据 user:elastic 无密码,以及 user:elastic password: changeme 通过基于浏览器的身份验证弹出窗口进行身份验证,如其他弹性论坛所建议的那样,但没有成功。我也通过邮递员尝试了相同的方法,使用基本身份验证。有没有办法简单地关闭身份验证以进行测试?

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    我可以通过编辑位于 C:\ProgramData\Elastic\Elasticsearch\config 中的 elasticsearch.yml 文件来关闭身份验证

    设置xpack.security.enabled: false 成功了。

    就我而言,我还必须重新启动 elasticsearch windows 服务。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-02
      • 2015-11-05
      • 2019-03-16
      • 2020-10-11
      • 2015-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多