我正在嘗試在我的 Mac 上安裝 ElasticSearch。
我從官網下載了tar并解壓。
然后我運行 bin/elastic。之后我打開 https://localhost:9200/ 并在我取消它時顯示用戶名和密碼的輸入欄位,這會出現:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/]",
"header": {
"WWW-Authenticate": [
"Basic realm=\"security\" charset=\"UTF-8\"",
"Bearer realm=\"security\"",
"ApiKey"
]
}
}
],
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/]",
"header": {
"WWW-Authenticate": [
"Basic realm=\"security\" charset=\"UTF-8\"",
"Bearer realm=\"security\"",
"ApiKey"
]
}
},
"status": 401
}
我沒有輸入密碼或用戶名,我查看了以前的問題,沒有人為我作業。我應該怎么辦?
注意:當我打開 http://localhost:9200/ 時,它會顯示:
This page isn’t working localhost didn’t send any data.
ERR_EMPTY_RESPONSE
uj5u.com熱心網友回復:
特長;
似乎Elasticsearch 會自動創建密碼。
你可能想設定你自己的
bin/elasticsearch-setup-passwords interactive
但在版本8.x及更高版本中已棄用。
你應該使用
elasticsearch-setup-passwords interactive
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/481745.html
標籤:弹性搜索
上一篇:彈性搜索排序錯誤-search_phase_execution_exception
下一篇:名稱的彈性匹配查詢
