天天看點

安裝elasticsearch遇到的問題

如果此時敲入指令行 ./elasticsearch來啟動時,會有可能出現如下問題:

1) [3]: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 

這是由于程序的虛拟記憶體空間不足。

修改配置檔案 : # vim /etc/sysctl.conf

在下面添加: vm.max_map_count=262144

然後執行 # sysctl -p

2)[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

這時候繼續編輯elasticsearch.yml檔案,将 #cluster.initial_master_nodes: ["node-1", "node-2"] 修改為 cluster.initial_master_nodes: ["node-1"],記得儲存

es

繼續閱讀