elasticsearch的x-pack5.6.2的破解。
1.4.编译,重新打包jar包 。替换之前的jar包。
mv x-pack-5.6.2.jar /usr/share/elasticsearch/plugins/x-pack
2.配置新的license文件
可以自己去申请一个,它会绑定uuid,申请的license为basic版,可以管一年。我们现在要将我们的basic版,改为platinum(白金版)。可以自己去申请一个
{
"license": {
"uid": "29f88965-81a8-4a60-b0c1-c90ff107****",
"type": "basic", //改成"platinum"
"issue_date_in_millis": 1547424000000,
"expiry_date_in_millis": 1579046399999,
"max_nodes": 100,
"issued_to": "luo tianzhen (an)",
"issuer": "Web Form",
"signature": "AAAAAwAAAA3AJ5iBwDBhQC4/ZUfRAAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGUjE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUtUMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0ZsclZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQBhFT0+og+N5QsE7RbUkNXyNdqkBrFrd1bGH2vN10/SN+zSI9kSTAZrgKTpJcUIX6A+cbxw2/j6UngHgxhsMLsjIa/EsAbL5Dm2n0d9f/oqpJj3b7iRhlgDSw3BiyQ9QAwKDF7pahB41D1L6nrgLTxJG2mP5YApCYcLSvkSpy5SNmpWp7JvUxZvVYEPcPjOfvuX4wyrAAoUqtS2EDWz7XfduLJ0L9dthO5YzdBCB4rNxnToVd+ekwFPqbgcKPyvLpvjyi0HIjS+3X2/NQWseJ++VLCysZwDrm2qSiUS4uPbdQeja6cyNjT66SlHHc5fVofLfQX/+GKq5TKAejeKylqE",
"start_date_in_millis": 1547424000000 //改成 3107746200000,此为2068年
}
}
curl -XPUT -u 'elastic:changeme' 'http://192.168.63.11:9205/_xpack/license?acknowledge=true' -H "Content-Type: application/json" -d @lzlicense.json