elasticsearch x-pack license过期

本文介绍了如何在Elasticsearch中注册及更新License,并提供了具体的命令示例,包括curl命令的使用方法,以及如何验证License的有效性和查看License详情。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


1.注册一个新的license,每一项都要填写,每次可以使用一年,一年到期后再来注册一个新的


2.更新license (官方文档:https://www.elastic.co/guide/en/x-pack/5.6/installing-license.html)
上传license文件后执行下面的命令:
curl -XPUT -u elastic 'http://10.127.0.1:9200/_xpack/license?acknowledge=true' -H "Content-Type: application/json" -d @gavin-c3c8a5f8-effc-432a-8e52-276e2a6324ad-v5.json
提示输入密码 Enter host password for user 'elastic': (默认密码是changeme)
返回:{"acknowledged":true,"license_status":"valid"}

3.查看新的license https://www.elastic.co/guide/en/x-pack/5.6/listing-licenses.html
curl -XGET -u user:password 'http://<host>:<port>/_xpack/license'
curl -XGET -u elastic:changeme 'http://10.127.0.1:9200/_license'
返回:

{
  "license" : {
    "status" : "active",
    "uid" : "c3c8a5f8-effc-432a-8e52-276e2a6324ad",
    "type" : "basic",
    "issue_date" : "2018-03-07T00:00:00.000Z",
    "issue_date_in_millis" : 1520380800000,
    "expiry_date" : "2019-03-07T23:59:59.999Z",
    "expiry_date_in_millis" : 1552003199999,
    "max_nodes" : 100,
    "issued_to" : "yang xiang (cy)",
    "issuer" : "Web Form",
    "start_date_in_millis" : 1520380800000
  }
}

参考地址:https://www.jianshu.com/p/a49d93212eca

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值