cd /usr/share/elasticsearch/bin/x-pack/
./users useradd temp -r superuser
输入两遍密码
curl -XPUT -u temp:changeme http://localhost:9200/_xpack/security/user/elastic/_password -H "Content-Type: application/json" -d '{"password": "changemenew"}'
登录