Kibana报错[security_exception] current license is non-compliant for [security]
ElasticSearch版本:5.1.1
报错详情:
plugin:profiler@5.1.1 [security_exception] current license is non-compliant for [security], with { license.expired.feature=security}
报错如图:
原因:提供的license过期
解决方式:更换license
(1)官网(https://register.elastic.co/registration)申请license,所有条目都需要填写,邮箱正确即可。
(2)点开邮箱,打开链接下载license
点击右边5.x版本下载到本地,会生成一个json文件,命名为:First name-Last name-编号-版本号.json。并将该文件上传到服务器
(3)打开教程,提示执行下面的代码
curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -H "Content-Type: application/json" -d @license.json
note:
-
- 注意切换到管理员
root权限
- 注意切换到管理员
-
- 如果没有账号密码,可以删掉
-u elastic
- 如果没有账号密码,可以删掉
-
host
为该服务器ip
-
port
默认是9200
,如果你没有改动的话
-
- @license.json改为刚刚上传到服务器的
license文件
- @license.json改为刚刚上传到服务器的