开放对外访问后启动elasticsearch时报错:ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/java/elasticsearch-7.6.1/logs/elasticsearch.log
解决方法:
在elasticsearch.yml中将以下配置的注释去掉
cluster.initial_master_nodes: ["node-1", "node-2"]