设置elasticsearch 7.x用户名和密码
1、修改elasticsearch.ymlelasticsearch.ymlhttp.cors.enabled: truehttp.cors.allow-origin: "*"http.cors.allow-headers: Authorizationxpack.security.enabled: truexpack.security.transport.ssl.enabled: tr...