版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27868061/article/details/82963771
elasticsearch-head插件安装好后,启动成功,界面实现未连接,Elasticsearch也启动成功
原因:head插件启动在http://localhost:9100,Elasticsearch启动在http://localhost:9200,head插件访问ES属于跨域访问
而ES默认不开启跨域访问,需要添加以下配置
elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"