1、安装elasticsearch docker版本
2、在/usr/share/elasticsearch/bin目录下运行设置密码命令
elasticsearch-setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,logstash_system,beats_system,remote_monitoring_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]
3、按提示设置每个系统的密码。