# ======================== Elasticsearch Configuration ========================= 多节点部署指定唯一的集群名称 cluster.name:elasticsearch-app # ------------------------------------ Node ------------------------------------ # Use a descriptive name for the node: # node.name:node-1 # # Add custom attributes to the node: # ---------------------------------- Network ----------------------------------- network.host:127.0.0.1 # By default Elasticsearch listens for HTTP traffic on the first free port it # finds starting at 9200. Set a specific HTTP port here: # http.port:9200 # 为了集群各节点之间的指令通信 transport.tcp.port:9300 # 允许前端跨域访问 http.cors.enabled:true http.cors.allow-origin:"*" # 发现集群之间各个节点,对应transport.tcp.port discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301", "127.0.0.1:9302"] # # Bootstrap the cluster using an initial set of master-eligible nodes:
# ======================== Elasticsearch Configuration ========================= 多节点部署指定唯一的集群名称 cluster.name:elasticsearch-app # ------------------------------------ Node ------------------------------------ # Use a descriptive name for the node: # node.name:node-2 # # Add custom attributes to the node: # ---------------------------------- Network ----------------------------------- network.host:127.0.0.1 # By default Elasticsearch listens for HTTP traffic on the first free port it # finds starting at 9200. Set a specific HTTP port here: # http.port:9201 # 为了集群各节点之间的指令通信 transport.tcp.port:9301 # 允许前端跨域访问 http.cors.enabled:true http.cors.allow-origin:"*" # 发现集群之间各个节点,对应transport.tcp.port discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301", "127.0.0.1:9302"] # # Bootstrap the cluster using an initial set of master-eligible nodes:
# ======================== Elasticsearch Configuration ========================= 多节点部署指定唯一的集群名称 cluster.name:elasticsearch-app # ------------------------------------ Node ------------------------------------ # Use a descriptive name for the node: # node.name:node-3 # # Add custom attributes to the node: # ---------------------------------- Network ----------------------------------- network.host:127.0.0.1 # By default Elasticsearch listens for HTTP traffic on the first free port it # finds starting at 9200. Set a specific HTTP port here: # http.port:9202 # 为了集群各节点之间的指令通信 transport.tcp.port:9302 # 允许前端跨域访问 http.cors.enabled:true http.cors.allow-origin:"*" # 发现集群之间各个节点,对应transport.tcp.port discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301", "127.0.0.1:9302"] # # Bootstrap the cluster using an initial set of master-eligible nodes:
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["kbn-name"] at ServerResponse.setHeader (_http_outgoing.js:561:3)
需要指定kibana的服务名称,即更改对应/config下的kibana.yaml文件:
1 2 3 4 5
# The Kibana server's name. This is used for display purposes. server.name:"kibana" # The URLs of the Elasticsearch instances to use for all your queries. # 这是默认的elasticsearch端口 # elasticsearch.hosts: ["http://localhost:9200"]