0
回答
Elasticsearch+x-pack认证,修改默认口令时报错
华为云4核8G,高性能云服务器,免费试用   

修改elastic用户口令时,报错,执行的命令和报错如下:

curl -XPUT -u elastic 'localhost:9200/_xpack/security/user/elastic/_password' -H "Contentpe: application/json" -d '{ "password" : "elastic123" }'

Enter host password for user '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}

上面的错误估计很多人遇到吧,大家都怎么解决的呢?

<无标签>
举报
LionelShen
发帖于11个月前 0回/125阅
顶部