解决Kibana报错[security_exception] current license is non-compliant for [security]问题
作者:黄黄黄黄黄莹
ElasticSearch 5.1.1因安全许可证过期报错,解决方法:官网申请新许可证,下载JSON文件并上传至服务器,执行代码时切换root权限,配置host为服务器IP,端口9200,替换原license文件
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
为该服务器ipport
默认是9200
,如果你没有改动的话- @license.json改为刚刚上传到服务器的
license文件
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。