美文网首页
elastic search 5.6.10 x-pack 破解

elastic search 5.6.10 x-pack 破解

作者: A_You | 来源:发表于2018-11-25 10:37 被阅读0次

    先描述下约束和依赖:

    • 每台elastic search node 都必须安装 x-pack,包括 master、data、query 等节点类型
    • 安装后所有机器节点都需要重启

    kibana 安装

    不在详细描述
    

    x-pack 安装

    1: 安装 x-pack-5.6.10
    bin/elasticsearch-plugin install x-pack
    bin/elasticsearch-plugin install file:///path/to/file/x-pack-5.6.10.zip
    2: 更改配置文件
    同时修改elasticsearch.yml 和kibana.yml:
    xpack.security.transport.ssl.enabled: true
    xpack.security.enabled: false
    xpack.monitoring.enabled: true
    xpack.graph.enabled: true
    详细参数介绍:

    image.png
    3: 重新编译 LicenseVerifier.class
    3.1 修改文件
    package org.elasticsearch.license;
                  public class LicenseVerifier{
                  public static boolean verifyLicense(final License license, final byte[]  encryptedPublicKeyData) {
                     return true;
                   }
                   public static boolean verifyLicense(final License license) {
                        return true;
                   }
                   }
    

    反编译推荐使用: [https://github.com/deathmarine/Luyten/releases/tag/v0.5.0]

    3.2 替换服务器上所有的LicenseVerifier.class
    jar uvf x-pack-5.6.10.jar org/elasticsearch/license/LicenseVerifier.class
    3.3 修改 license
    1. get license from website https://license.elastic.co/registration
    2. "type":"platinum", // 白金版,权限高
    "expiry_date_in_millis":1572393599999 2019-10-30 默认一年;更改为2030年
    3. curl -XPUT -u elastic:elastic "ip:host/_xpack/license?acknowledge=true" -H 'Content-Type:application/json' -d @license.json

    效果

    image.png

    相关文章

      网友评论

          本文标题:elastic search 5.6.10 x-pack 破解

          本文链接:https://www.haomeiwen.com/subject/mptpqqtx.html