报错1:
curl -XGET http://192.168.56.115:9200/_license
解决方式
在 es/config/elasticsearch.yml文件,把开启密码验证把此处也修改成false
xpack.security.enabled: false
报错2:
解决方式:
查看服务器es的license信息,发现 “type” : “basic”
curl -XGET http://192.168.56.115:9200/_license
curl -X POST "192.168.56.115:9200/_license/start_trial?acknowledge=true&pretty"
再查看license信息时,内容已发生变化。
报错3
ES的license由trial更改为为basic
解决方式:
#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