• elasticsearch 5.1 认证过期 (your license has expired)


    首先说一下License过期后的状况:

    1. if 设置了登录认证,license过期后将无法登录(无法填入用户名密码,下方给出报错,license过期);
    2. if 没有设置登录认证,打开kibaba界面中Monitoring将无法使用,报错ERROR。

     

    license更新方法:

    1. 下载 Free License 过程中会要求你用邮箱注册,新的license会发送到你的邮箱;
    2. 发送请求到 license API,并指定包含新license的文件:
      1. curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -d @license.json  
      2. 如果新的 license 支持功能与原 license 不一致:curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license?acknowledge=true' -d @license.json
      3. 默认端口为9200
    3. 查看license
      curl -XGET -u elastic:changeme 'http://<host>:<port>/_xpack/license'       #elastic为用户名;changeme为初始密码
      {
        "license" : {
          "status" : "active",
          "uid" : "0a98411f-73f4-4c67-954c-724874ed5488",
          "type" : "trial",
          "issue_date" : "2015-10-13T18:18:20.709Z",
          "issue_date_in_millis" : 1444760300709,
          "expiry_date" : "2015-11-12T18:18:20.709Z",
          "expiry_date_in_millis" : 1447352300709,
          "max_nodes" : 1000,
          "issued_to" : "elasticsearch",
          "issuer" : "elasticsearch"
        }
      }

    详细更新信息见官网:https://www.elastic.co/guide/en/x-pack/current/installing-license.html#installing-license

     

  • 相关阅读:
    luogu4781
    luogu 4933
    luogu p1726
    bzoj2238
    luogu 1462 通往奥格瑞玛的道路
    noip.ac 3276 矩阵
    luogu1144
    noip.ac 3248
    奶牛比赛
    小P的Civilization V
  • 原文地址:https://www.cnblogs.com/DillGao/p/6339974.html
Copyright © 2020-2023  润新知