1. 程式人生 > >elasticsearch-head中cluster health: not connected

elasticsearch-head中cluster health: not connected

修改elasticsearch安裝目錄中 config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: “*”
修改elasticsearch-head下Gruntfile.js
connect: {
server: {
options: {
hostname: ‘0.0.0.0’,
port: 9100,
base: ‘.’,
keepalive: true
}
}
}
在這裡插入圖片描述

注意:如果是繫結ip後,在頁面的連線處寫ip地址。預設是localhost,可能導致連線不上。