一、現(xiàn)象
因為 es 不允許使用root用戶安裝,在使用新建的es用戶安裝的時候報錯如下,
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
ERROR: [3] bootstrap checks failed. You must address the points described in the following [3] lines before starting Elasticsearch.
bootstrap check failure [1] of [3]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
bootstrap check failure [2] of [3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
bootstrap check failure [3] of [3]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, clust
二、解決辦法
將當(dāng)前用戶的軟硬限制調(diào)大。找到文件 /etc/security/limits.conf,編輯,在文件的最后追加如下配置:
es soft nofile 65535
es hard nofile 65537
?文章來源:http://www.zghlxwxcb.cn/news/detail-515962.html
說明: soft nofile表示軟限制,hard nofile表示硬限制。兩行語句表示,es用戶的軟限制為65535,硬限制為65537,即表示es用戶能打開的最大文件數(shù)量為65537,不管它開啟多少個shell。文章來源地址http://www.zghlxwxcb.cn/news/detail-515962.html
到了這里,關(guān)于elastic安裝報錯:max file descriptors [4096] for elasticsearch process is too low, increase to at least的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!