python许可证过期_x-pack许可证过期问题解决

原来安装一套elk日志系统,其中es和kibana用到x-pack插件,安装后可以免费试用一个月。一个月后需要许可证,一旦许可证过期将无法使用其中一些功能

这一点官网有介绍:

错误类型状态如下

[root@xjjh-test1 ~]curl -u elastic:changeme '192.168.6.121:9200/_cat/indices?v'

{"error":{"root_cause":[{"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"}],"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"},"status":403}

翻译:

{ “错误” :{ “ root_cause” :[ { “ type” :“ security_exception” ,“ reason” :“当前许可证不符合[security]” ,“ license.expired.feature” :“ security” } ] ,“类型” :“ security_exception” ,“原因” :“当前许可证不符合[安全性]” ,“ license.expired.feature” :“安全性” },“状态” :403 }

1

2

3

4

[root@xjjh-test1~]curl-uelastic:changeme'192.168.6.121:9200/_cat/indices?v'

{"error":{"root_cause":[{"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"}],"type":"security_exception","reason":"current license is non-compliant for [security]","license.expired.feature":"security"},"status":403}

翻译:

{“错误”:{“root_cause”:[{“type”:“security_exception”,“reason”:“当前许可证不符合[security]”,“license.expired.feature”:“security”}],“类型”:“security_exception”,“原因”:“当前许可证不符合[安全性]”,“license.expired.feature”:“安全性”},“状态”:403}

解决办法

1.申请一个免费trial license(https://license.elastic.co/registration) ,下载license,保存为license.json

申请之后相关内容会会发送到你的邮箱

这个东西是免费的,自己申请即可

2.下载好开始执行更新

先查看下你当前的证书

curl -XGET -u elastic:changeme 'http://192.168.6.121:9200/_xpack/license'

1

curl-XGET-uelastic:changeme'http://192.168.6.121:9200/_xpack/license'

将下载好的license.json文件上传到你的服务器目录(放哪都可以),然后执行如下

curl -XPUT -u elastic:changeme 'http://192.168.6.121:9200/_xpack/license?acknowledge=true' -d @license.json

1

curl-XPUT-uelastic:changeme'http://192.168.6.121:9200/_xpack/license?acknowledge=true'[email protected]

3.再次查看许可证

curl -XGET -u elastic:changeme ‘http://192.168.6.121:9200/_xpack/license’

可以看到许可证有效期增加了一年

顺便说一下,X-PACK免费证书无安全验证功能。所以不要纠结安装后怎么无需登录就访问kibana了。因为你的免费证书没辙功能,这块蛋疼了几个小时

最后编辑:2020-02-17作者:shooter

这个作者貌似有点懒,什么都没有留下。

你可能感兴趣的:(python许可证过期)