之因此想玩一玩elasticSearch7.5.1,是由于实习的时候,在项目中将elasticSearch2.3.4升级到了elasticSearch5.6.2,其中遇到了不少问题,但仍是都解决了,但因为elasticSearch的版本迭代太快,全部接下来几篇博客记录一下elasticSearch7.5.1的一些知识点(固然我在本地安装没有设置X-pack,毕竟不想搞运维相关的,设置了x-pack的话,在Springboot整合elasticSearch的时候,elasticSearch-client的客户端配置一下就能够了)npm
在elasticSearch7.5.1/config/elasticSearch.ymlcors
network.host: 192.168.xxx.xx(你的IP地址) http.port: 9200
http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE http.cors.allow-headers: Authorization, X-Requested-With,Content-Length,Content-Type
server.port: 5601 server.host: 0.0.0.0 elasticsearch.hosts: ["http://192.168.xxx.xx:9200"] elasticsearch.ssl.verificationMode: none
在elasticSearch7.5.1/bin/elasticSearch.bat,运行服务
在Kiban7.5.1/bin/Kibana.bat 运行服务
在控制台elasticSearch7.5.1/elasticSearch-header-master/npm start运维
访问:{ip地址}:9100elasticsearch
访问:127.0.0.1:5601spa