ElasticSearch7 設定外網訪問失敗

2022-09-23 08:57:01 字數 1204 閱讀 1679

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 後啟動失敗。

我的設定:

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]"]

Elasticsearch7 6 寫入調優配置

寫的雖然是寫調優 除了一些index的設定外 其他平時都可以用 安裝配置階段 快速記錄 忽略格式 1 調整記憶體佔用 修改config jv...