0
回答
Elasticsearch+x-pack认证,修改默认口令时报错
注册华为云得mate10,2.9折抢先购!>>>   

修改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
发帖于6个月前 0回/35阅
顶部