下载,解压,添加用户和授权,配置
错误提示:
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [1024] for user [testuser] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决办法:
1.切换至root用户
su root
2. [2]问题,修改limits.d目录下的配置文件: 修改1024成4096,保存
vi /etc/security/limits.d/90-nproc.conf
其他问题,修改 etc/security/limits.conf
sudo vi /etc/security/limits.conf
在文件最后面加上
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
注:*后面有空格
修改 /etc/sysctl.conf
sudo vi /etc/sysctl.conf
在文件最后面加上
vm.max_map_count=262144
配置重新生效
sysctl -p
ES6在centOS系统启动,报错:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
原因: 因为Centos6不支持SecComp,而ES默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动解决:修改elasticsearch.yml 添加一下内容 :
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
此时再运行elasticsearch。
运行kibana7.9.0版本时,系统缺少glibc2.14,glibc2.15,glibc2.16。kibana界面启动一直在加载,不成功。换低版本的ElasticSearch和kibana
换成ElasticSearch7.0.0和kibana7.0.0版本后启动有这个警告,但是可以启动成功