报错1:
bash
curl -XGET http://192.168.56.115:9200/_license

解决方式
在 es/config/elasticsearch.yml文件,把开启密码验证把此处也修改成false
xpack.security.enabled: false

报错2:



解决方式:
查看服务器es的license信息,发现 "type" : "basic"
bash
curl -XGET http://192.168.56.115:9200/_license

bash
curl -X POST "192.168.56.115:9200/_license/start_trial?acknowledge=true&pretty"
再查看license信息时,内容已发生变化。
报错3
ES的license由trial更改为为basic

解决方式:
bash
#curl -H "Content-type:application/json" -X POST http://localhost:9200/_xpack/license/start_basic?acknowledge=true -u username:password
curl -H "Content-type:application/json" -X POST http://192.168.56.115:9200/_xpack/license/start_basic?acknowledge=true -u elastic:www.yangxingzhen.com
