启动OceanBase集群时提示open files must be not be less than 20000的解决方法
问题现象描述
启动OceanBase集群时提示:
open files must be not be less than 20000(Current value: 1024)
关键过程、根本原因分析
配置文件里面的最大文件数设置过小,导致打开文件数超过最大文件数时被阻止。
结论、解决方案及效果
- 在服务器的命令行界面执行如下命令。
cat >> /etc/security/limits.conf << EOF * soft nofile 655350 * hard nofile 655350 EOF
- 重新登录服务器,使1的配置生效。
- 查看open files当前值。
ulimit -n
命令返回655350,表示已配置成功。
父主题: 故障排除