发现 集群健康值:未连接 关闭elasticsearch 和head

 在elasticsearch的config目录下,编辑elasticsearch.yml

添加以下语句:

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"

ctrl+s保存退出 

先启动elasticsearch,再启动head,进入9100端口

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐