首次運行elasticsearch錯誤處理
阿新 • • 發佈:2017-07-18
elasticsearch ekl linux
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
處理方法:
解決:切換到root用戶,編輯limits.conf 添加類似如下內容 vi /etc/security/limits.conf 添加如下內容: * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096
[2]: max number of threads [1024] for user [op] is too low, increase to at least [2048]
解決:切換到root用戶,進入limits.d目錄下修改配置文件。 vi /etc/security/limits.d/90-nproc.conf 修改如下內容: * soft nproc 1024 #修改為 * soft nproc 2048
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解決:切換到root用戶修改配置sysctl.conf vi /etc/sysctl.conf 添加下面配置: vm.max_map_count=655360 並執行命令: sysctl -p
[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解決:vim /etc/elasticsearch/elasticsearch.yml 增加如下一行: bootstrap.system_call_filter: false
PS: elasticsearch5.0後必須用普通用戶運行,禁止以root用戶運行
本文出自 “小科” 博客,請務必保留此出處http://kexiaoke.blog.51cto.com/5530023/1948526
首次運行elasticsearch錯誤處理