錯誤信息:
bootstrap checks failedhtml
解決方法:
1.修改elasticsearch.yml配置文件,容許外網訪問。
vim config/elasticsearch.yml,增長 network.bind_host: 0.0.0.0 或者是 network.host: 0.0.0.0。bootstrap
2.啓動失敗,檢查沒有經過,報錯vim
[2019-07-14T17:44:59,658][INFO ][o.e.b.BootstrapChecks ] [gFOuNlS] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]elasticsearch
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]oop
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]ui
編輯 /etc/security/limits.conf,再配置文件下面追加如下內容;
* soft nofile 65536
* hard nofile 65536spa
此文件修改後須要從新登陸用戶,纔會生效。htm
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]blog
編輯 /etc/sysctl.conf,追加如下內容:
vm.max_map_count=655360
保存後,執行:ip
sysctl -p
從新啓動容器,成功。