重置密码报错:
ERROR: Failed to reset password for the [elastic] user
修改配置文件 /config/elasticsearch.yml
修改或添加
discovery.type: single-node xpack.security.enabled: true xpack.security.http.ssl.enabled: false xpack.security.enrollment.enabled: true xpack.license.self_generated.type: basic xpack.security.transport.ssl.enabled: false
discovery.type: single-node 这个表示单机模式启动
修改完之后启动es
默认第一次启动日志会打印密码出来
也可以通过bin下面的命令设置密码
为elastic
账号自动生成新的随机密码,输出至控制台
bin/elasticsearch-reset-password -u elastic
手工指定elastic
的新密码
bin/elasticsearch-reset-password --username elastic -i
标签:bin,elastic,xpack,enabled,ES8,security,password,ElasticSearch8,账号密码 From: https://www.cnblogs.com/pxblog/p/18324689