【发布时间】:2020-02-28 08:45:47
【问题描述】:
我发现 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
}
【问题讨论】:
-
可以添加弹性查询吗,正在执行
-
任何请求...我也在 localhost:9200 上的浏览器上尝试这些
-
如果你使用浏览器尝试elastic:changeme@localhost:9200,如果在 curl -XPUT -u elastic:changeme 'localhost:9200' -H 'Content-Type: application/json' -d'跨度>
-
没有用!!
标签: elasticsearch elasticsearch-x-pack