elasticsearch开启xpack

开启试用
curl -H "Content-Type:application/json" -XPOST http://127.0.0.1:9200/_xpack/license/start_trial?acknowledge=true

配置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

开启:
bin/elasticsearch-setup-passwords interactive

posted @ 2022-02-23 15:39  wanghhhh  阅读(149)  评论(0)    收藏  举报