elasticsearch添加访问密码
1、将x-pack复制到elasticsearch的plugins目录下面
2、启动elasticsearch
.bin/elasticsearch &
3、修改指定用户密码
PUT http://ip:9200/_xpack/security/user/用户名/_password header参数: Authorization Basic ZWxhc3RpYzpjaGFuZ2VtZQ==(原始用户:密码base64加密:elastic:changeme) body: { "password":"Huaweiapi@#" }