elasticsearch-windows-配置 及集成springboot-data

下载前注意和springboot的版本匹配情况

请一定注意版本兼容问题。这关系到很多maven依赖。Spring Data Elasticsearch Spring Boot version matrix

版本兼容列表.png

es下载:https://www.elastic.co/downloads/past-releases

复制多个es文件,模拟分布式es。

解压双击elasticsearch.bat运行

slave配置:
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配置: 
http.cors.enabled: true     //跨域  和head

http.cors.allow-origin: "*"  //跨域  和head

cluster.name: wali

node.name: master

node.master: true

network.host: 127.0.0.1

es-head 安装:低版本可以直接打开cmd命令窗口,进入解压文件的bin目录,然后执行命令:

plugin install mobz/elasticsearch-head

高版本

使用node安装,npm install   npm run start 

springboot集成,参考:https://www.jianshu.com/p/35f9f867f48f

猜你喜欢

转载自blog.csdn.net/liuxl_0205/article/details/80065939