1、elastic 訪問9200 認證無法登陸,日志 出現 401 問題?
2、同樣的 訪問 kibana http://ip:5601 出現:Kibana server is not ready yet訪問異常 ?
es 添加認證 9200 登陸異常,es 日志信息? [2020-05-22T17:13:30,401][INFO ][o.e.x.s.a.AuthenticationService] [10.10.28.92] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic] [2020-05-22T17:20:49,401][INFO ][o.e.x.s.a.AuthenticationService] [10.10.28.92] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
3、同時測試 kibana 5601 登陸?
訪問 http://ip:5601 出現異常 Kibana server is not ready yet
4、本地 驗證 elastic 賬戶
本地 驗證 elastic 賬戶 curl -u elastic 'http://localhost:9200/_xpack/security/_authenticate?pretty'
5、檢查 es 配置;
切換 elastic 主目錄
vi config/elasticsearch.yml ### http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type # xpack.ml.enabled: false xpack.security.enabled: true xpack.security.transport.ssl.enabled: true ###
6、檢查 kibana 配置;
切換 kibana 主目錄
vi kibana/config/kibana.yml ### elasticsearch.username: "elastic" elasticsearch.password: "elastic" ###
elasticsearch 7.6.2 重置密碼;
重置 elastic 賬戶密碼
curl -u elastic -XPUT 'http://localhost:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d' { "password" : "elastic" } '
7、如果 重置依然出現問題 ?
切換 es 主目錄 執行 elasticsearch-setup-passwords 重置所有密碼
./elasticsearch-setup-passwords interactive