我已经 用 Docker 安装了 Elastic :
docker run -p 9200:9200 \
-p 9300:9300 \
-e "discovery.type=single-node" \
docker.elastic.co/elasticsearch/elasticsearch:5.6.2
但是 curl localhost:9200
失败并出现身份验证错误:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "missing authentication token for REST request [/]",
"header": {
"WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type": "security_exception",
"reason": "missing authentication token for REST request [/]",
"header": {
"WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status": 401
}
Elasticsearch 的默认用户名/密码组合是什么?
原文由 Adam Matan 发布,翻译遵循 CC BY-SA 4.0 许可协议
默认值为:
所以:
阅读有关 更改默认值的 更多信息。