elasticsearch-5.6插件x-pack破解
阿新 • • 發佈:2018-05-22
elastic kibana x-pack 安裝 elastic x-pack
/usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack
重啟 elasticsearch
systemctl restart elasticsearch.service
安裝 javac 命令
yum -y install java-1.8.0-openjdk-devel
創建 LicenseVerifier.java 文件
$ cat LicenseVerifier.java package org.elasticsearch.license; import java.nio.*; import java.util.*; import java.security.*; import org.elasticsearch.common.xcontent.*; import org.apache.lucene.util.*; import org.elasticsearch.common.io.*; import java.io.*; public class LicenseVerifier { public static boolean verifyLicense(final License license, final byte[] encryptedPublicKeyData) { return true; } public static boolean verifyLicense(final License license) { return true; } }
編譯class文件
cd /root/ javac -cp "/usr/share/elasticsearch/lib/elasticsearch-5.6.9.jar:/usr/share/elasticsearch/lib/lucene-core-6.6.1.jar:/usr/share/elasticsearch/plugins/x-pack/x-pack-5.6.9.jar" LicenseVerifier.java cd /usr/share/elasticsearch/plugins/x-pack/ mkdir test mv x-pack-5.6.9.jar test/ cp test/x-pack-5.6.9.jar /tmp/ #備份文件 cd test/ jar xvf x-pack-5.6.9.jar cp /root/LicenseVerifier.class org/elasticsearch/license/ rm x-pack-5.6.9.jar jar cvf x-pack-5.6.9.jar . mv x-pack-5.6.9.jar /usr/share/elasticsearch/plugins/x-pack/
申請license
申請地址
#修改 license 文件
type: platinum
expiry_date_in_millis: 2535123399999
curl -XPUT -u elastic ‘http://localhost:9200/_xpack/license‘ -H "Content-Type: application/json" -d @license.json
#默認密碼 changeme
curl -XGET -u elastic:changeme ‘http://localhost:9200/_xpack/license‘
kibana 安裝 x-pack
/usr/share/kibana/bin/kibana-plugin install x-pack vim /etc/kibana/kibana.yml elasticsearch.username: "elastic" elasticsearch.password: "changeme" systemctl restart kibana.service
elasticsearch-5.6插件x-pack破解