Through this article, you can quickly install elasticsearch and kibana environments on Windows systems.
When you use the Integer type, be very careful, because 100 is equal to 100, but 200 is not equal to 200. Of course, if you know a little trick, you can also make 100 not equal to 100 and make 200 equal to 200. (The == operator compares whether the references of objects are equal, not whether the values are equal. The equals method is used for wrapper type comparison operations)
Article directory
-
-
- 1. Install JDK
- 2. Download ES
- 3. Unzip the ES installation package
- 4. Modify the ES service port
- 5. Start ES
- 6. Verify whether ES starts successfully
- 7. Download Kibana
- 8. Unzip the Kibana installation package
- 9. Modify the ES configuration in Kibana
- 10. Start Kibana
- 11. Enter Kibana’s DevTools interface to operate ES
-
1. Install JDK
Elasticsearch is developed based on Lucene, and JDK needs to be installed before running Elasticsearch. For ES 5.x and higher, it depends on the 1.8 or higher JDK.
If JDK8 or higher is already installed on your computer, there is no need to continue installing JDK, just skip this step. Check the version through the java -version command.
2. Download ES
elk historical version download address: https://www.elastic.co/cn/downloads/past-releases/
ES green version download address: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.1-windows-x86_64.zip
3. Unzip the ES installation package
The decompressed es directory structure is as follows:
4. Modify the ES service port
es default port is 9200.
Enter the config directory and add the following configuration to the elasticsearch.yml file:
http.port: 9201
5. Start ES
Enter the bin directory and double-click to execute the elasticsearch.bat file to start es.
As shown in the picture above, it means that es is started successfully.
6. Verify whether ES starts successfully
The 9201 here is our modified port number, and the default port of ES is 9200.
Browser access: http://localhost:9201/
If you need to modify the es cluster name: Just add it to the elasticsearch.yml file in the config directory cluster.name= xxx
.
7. Download Kibana
Kibana download address: https://artifacts.elastic.co/downloads/kibana/kibana-7.7.1-windows-x86_64.zip
8. Unzip the Kibana installation package
The unzipped kibana directory structure is as follows:
9. Modify the ES configuration in Kibana
Enter the config directory and add the es server address in kibana.yml. (If you have not touched the es port before, you can modify the kibana configuration and omit it)
The modifications are as follows:
elasticsearch.hosts: ["http://localhost:9201"]
10. Start Kibana
Double-click the kibana.bat file in the bin directory.
11. Enter Kibana’s DevTools interface to operate ES
Browser access: http://localhost:5601/
test: