Installation of Elasticsearch
Foreword:
This download is performed on the Windows system, the version is 7.6.1, because there is a problem with the latest version 8.1.2 next week
ElasticSearch is developed based on Java, and the minimum version of JDK is 1.8
The version of ElasticSearch should correspond to the version of the Jar package of Maven introduced later
1 Download ElasticSearch
Official website: https://www.elastic.co/cn/
Product SelectionElasticSearch
Because the download over the wall is very slow, and it is difficult to find other versions, you can use the Huawei cloud mirror to download, not only many versions but also fast download
Friends who are slow to download can go to
HUAWEI CLOUD image to download
The speed is very fast, you can find the corresponding version by yourself
ElasticSearch: https://mirrors.huaweicloud.com/elasticsearch/?C=N&O=D
logstash: https://mirrors.huaweicloud.com/logstash/?C=N&O=D
kibana: https://mirrors.huaweicloud.com/kibana/?C=N&O=D
Select the corresponding version
Download the corresponding compressed package
Then download to the local compressed package
After the download is complete, unzip and unzip to use
2 Familiarize yourself with the catalog
bin: startup file
config: configuration file default port 9200
elasticsearch.yml elasticsearch configuration file
jvm.options JVM JAVA virtual machine related configuration files
log4j2.properties log configuration file
lib: Related Jar packages
jdk: JAVA JDK related information
logs: log information
modules: function modules
plugins: plugin
The following are screenshots from different folders or files
Open the ES.yml configuration file to view information
Default port 9200
3 start ES
Open the bin directory and double-click the elasticsearch.bat file
Default access address + port 127.0.0.1:9200 Remote address: 192.168.0.111:9200
4 Visit ES
The following message appears
ES forms its own cluster, even if no cluster is configured, an ES is also a cluster, and the default cluster name is elasticsearch
It's more troublesome to look at, let's install the visual head