0

我发现 ES 的默认凭据是 elastic:changeme 但它对我不起作用!我错过了什么吗?错误 :

{
"error": {
    "root_cause": [
        {
            "type": "security_exception",
            "reason": "failed to authenticate user [elastic]",
            "header": {
                "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
            }
        }
    ],
    "type": "security_exception",
    "reason": "failed to authenticate user [elastic]",
    "header": {
        "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
      }
   },
  "status": 401
}
4

1 回答 1

1

我找到了解决方案:

只需在 cmd 上运行命令 bin/elasticsearch-setup-passwords auto -u " http://localhost:9200 ",密码将重新生成并打印在控制台中。

于 2020-02-28T09:53:19.103 回答