安裝最新版Elasticsearch報錯


 

1 問題:ERROR: bootstrap checks failed

max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]

vi /etc/security/limits.conf

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

vi /etc/sysctl.conf

vm.max_map_count=655360

保存后執行:

sysctl -p

2 報錯  the default discovery settings are unsuitable for production use

單機啟動 設置單機master修改 elasticsearch.yml

cluster.initial_master_nodes: ["node-1"] 

3.開通外網

修改elasticsearch.yml

network.host: 0.0.0.0

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM