首次运行elasticsearch错误处理
: max file descriptors for elasticsearch process is too low, increase to at least处理方法:
解决:切换到root用户,编辑limits.conf 添加类似如下内容
vi /etc/security/limits.conf
添加如下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
: max number of threads for user is too low, increase to at least
解决:切换到root用户,进入limits.d目录下修改配置文件。
vi /etc/security/limits.d/90-nproc.conf
修改如下内容:
* soft nproc 1024
#修改为
* soft nproc 2048
: max virtual memory areas vm.max_map_count is too low, increase to at least
解决:切换到root用户修改配置sysctl.conf
vi /etc/sysctl.conf
添加下面配置:
vm.max_map_count=655360
并执行命令:
sysctl -p
: 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: falsePS:
elasticsearch5.0后必须用普通用户运行,禁止以root用户运行
页:
[1]