elasticsearch-windows-configure and integrate springboot-data

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

Version Compatibility List.png

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: true

network.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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325697006&siteId=291194637