這個是由于head插件找不到對應集群的資訊,需要在es的組態檔添加以下資訊,我是因為cluster.initial_master_nodes這個,現在已經成功解決!
node.name: app01
cluster.initial_master_nodes: ["app01"] #名字和node.name的要一致
http.cors.enabled: true
http.cors.allow-origin: "*"
以上4行必須有
可以參考如下組態檔
node.name: app01
path.data: /usr/local/es/data
path.logs: /usr/local/es/logs
bootstrap.memory_lock: true #使用物理記憶體
network.host: 0.0.0.0
http.port: 9200 #提供服務埠
transport.tcp.port: 9300 #集群互動埠
discovery.zen.ping.unicast.hosts: ["app01"] #集群發現地址,對個用逗號分割
cluster.initial_master_nodes: ["app01"] #集群主
http.cors.enabled: true #開啟跨域
http.cors.allow-origin: "*" #任意都可以訪問
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/326502.html
標籤:其他
上一篇:卷積神經網路-初步認識
