Linux command
elasticsearch-reset-password 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Reset elastic user password
elasticsearch-reset-password -u elastic
Reset with auto-generated password
elasticsearch-reset-password -u [username] -a
Reset interactively
elasticsearch-reset-password -u [username] -i
Specify batch mode
elasticsearch-reset-password -u [username] -b
说明
elasticsearch-reset-password resets passwords for Elasticsearch built-in users. Can auto-generate or interactively set new passwords.
参数
- -u, --username _user_
- Username to reset.
- -a, --auto
- Auto-generate password.
- -i, --interactive
- Prompt for new password.
- -b, --batch
- Run in batch mode.
- --url _url_
- Elasticsearch URL.
- -E _setting=value_
- Override configuration.
FAQ
What is the elasticsearch-reset-password command used for?
elasticsearch-reset-password resets passwords for Elasticsearch built-in users. Can auto-generate or interactively set new passwords.
How do I run a basic elasticsearch-reset-password example?
Run `elasticsearch-reset-password -u elastic` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --username _user_ do in elasticsearch-reset-password?
Username to reset.