elasticsearch外網訪問9200埠失敗,bootstrap checks failed,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
Linux安裝ElasticSearch,修改組態檔elasticsearch.yml 后啟動失敗,
- CentOS Linux release 7.5
- ElasticSearch version 7.3.0
- Java openjdk version 1.8.0_222
我的設定:
vim /etc/elasticsearch/elasticsearch.yml
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
查看日志發現 (npm 安裝elasticsearch 日志路徑 /var/log/elasticsearch)
[ERROR][o.e.b.Bootstrap] [localhost.localdomain] node validation exception
[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
翻譯過來就是,在discovery.seed_hosts,discovery.seed_providers, cluster.initial_master_nodes中至少設定一項,
仔細看了官網檔案:discovery.seed_hosts 設定成默認值即可,
discovery.seed_hosts: ["127.0.0.1", "[::1]"]
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/35500.html
標籤:NoSQL
