[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用户运行
时间: 2024-11-06 11:41:39