Before downloading, pay attention to the version matching with springboot
Please be sure to pay attention to version compatibility issues. This is related to a lot of maven dependencies. Spring Data Elasticsearch Spring Boot version matrix
es download: https://www.elastic.co/downloads/past-releases
Copy multiple es files to simulate distributed es.
Unzip double-click elasticsearch.bat to run
slave configuration:
cluster.name: wali
node.name: slave2
network.host: 127.0.0.1
http.port: 8000
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]
master configuration:
http.cors.enabled : true //cross domain and head
http.cors.allow-origin: "*" //cross domain and head
cluster.name: guardian
node.name: master
node.master: truenetwork.host: 127.0.0.1
es-head installation: In the lower version, you can directly open the cmd command window, enter the bin directory of the decompressed file, and execute the command:
plugin install mobz/elasticsearch-head
High version
Install using node, npm install npm run start
springboot integration, reference: https://www.jianshu.com/p/35f9f867f48f