对于elasticsearch.yml 的配置如下,
cluster.name: lcc-application
node.name: node-172-16-96-66
node.master: true
node.data: true
path.data: /home/es/elasticsearch/elasticsearch-6.2.3_data/data/
path.logs: /home/es/elasticsearch/elasticsearch-6.2.3_data/logs/
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 0.0.0.0
http.port: 9200
discovery.zen.ping.unicast.hosts: ["172.16.96.66","172.16.96.67","172.16.96.68"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
每台除了node.name不一样,第三台的master为false,其余完全一样,可为什么总是报错啊
ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的企业级搜索引擎。设计用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便
network.host: 0.0.0.0
这里要写具体的ip,像你这样写只能启动单台,再多就会报错