首先說一下License過期后的狀況:
- if 設置了登錄認證,license過期后將無法登錄(無法填入用戶名密碼,下方給出報錯,license過期);
- if 沒有設置登錄認證,打開kibaba界面中Monitoring將無法使用,報錯ERROR。
license更新方法:
- 下載 Free License 過程中會要求你用郵箱注冊,新的license會發送到你的郵箱;
- 發送請求到 license API,並指定包含新license的文件:
- curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -d @license.json
- 如果新的 license 支持功能與原 license 不一致:curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license?acknowledge=true' -d @license.json
- 默認端口為9200
- 查看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