一:elasticsearch.yml配置文件增加下列配置
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
二:修改password
[[email protected] bin]$ ./elasticsearch-setup-passwords interactive
三:head插件