elasticsearch
Centos7
Elasticsearch-7.0.1
Kibana-7.0.1
To create a distribution without running the tests, simply run the following:
To create a platform-specific build including the x-pack modules, use the following depending on your operating system:
elasticsearch-7.0.1/modules/x-pack-core/x-pack-core-7.0.1.jar
fileorg.elasticsearch.license.LicenseVerifier
and open and copy the contents. Then create a new LicenseVerifier.java
file on our server and paste the copied content into.LicenseVerifier
. This is the method to verify whether the authorization file is valid. We modify it to return true
. And comment out the unnecessary code. Use / * * /
to comment here.LicenseVerifier.java
and XPackBuild.java
files just created into class files, here you need to pay attention to your own directory structureAfter execution, two class files will be generated in the current directory.
x-pack-core-7.0.1.jar
to an empty directory and decompress x-pack-core-7.0.1.jar
$ jar -xvf x-pack-core-7.0.1.jar
x-pack-core-7.0.1.jar
filex-pack-core-7.0.1.jar
and delete the x-pack-core-7.0.1.jar
source file, then repack:x-pack-core-7.0.1.jar
file into esConfigure the elasticsearch security protocol
Complete all the above operations. Before starting elasticsearch, we need to configure the SSL/TLS security protocol of elasticsearch. If it is not configured, we need to disable security to configure the license.
After the license is configured, we need to enable security and enable SSL\TLS.
Apply for a license
Log in to the elastic official website to apply for a license, [License application address] (https://license.elastic.co/registration). After the application is completed, the downloaded license format is json format. Modify the type
, expiry_date_in_millis
, and max_nodes
of the license to platinum
, 2524579200999
, and 1000
, respectively. as follows:
There is no 7 option, it is also possible to downloa 6. The time conversion is milliseconds.
The contents of the license are as follows:
We will write the expiration date to 2050 and change the type to platinum, so that we will have all the x-pack features.
Load License into elasticsearch
The configuration at this time is as follows:
View License
Cracked successfully
If we deploy es is the above configuration to a single node, if it is es cluster will also need the following operations:
At this time, the elastic-certificates.p12
file is generated in the config directory, and the file permissions are modified.
Copy the cracked es-01
and name them es-02
and es-03
respectively, and then clear the data and logs directories in es-02
and es-03
(very important, especially the data directory, otherwise an error will be reported)
Modify the es configuration
The configuration of es-01 is as follows:
The configuration of es-02 is as follows:
The configuration of es-03 is as follows:
Modify the configuration as follows:
Start kibana