centos 修改系统打开最大文件数限制 too many open files的解决方法
2012-01-07 14:09
711 查看
linux 系统中,当运行的进程打开了过多是文件,超出了系统默认的最大打开文件数的限制的时候,就会出现Too many open files的错误,这时候,不用紧张,只要把系统的配置修改一下就ok了。操作如下:
1.打开配置文件:
2.在文件最后加上两行:
1.打开配置文件:
vim /etc/security/limits.conf
2.在文件最后加上两行:
#* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 * - nproc 102400 * - nofile 102400最后的“102400”是修改最大打开文件数的限制数值。这个自己看着需要填写吧。不过设置为“102400”之后,就自己而言,很多情况都不会再出现Too many open files的错误了。这个可以纳为装完系统之后的系统优化之一吧。
相关文章推荐
- RHEL修改最大文件打开数,关于epoll socket Too many open files问题的解决
- 修改系统最大文件打开数——Too many open files(elasticsearch相关)
- 服务器异常java.io.IOException: Too many open files(系统最大文件打开数限制)
- linux 打开文件数 too many open files 解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- linux 打开文件数 too many open files 解决方法
- 修改linux的最大文件句柄数限制 (Too many open files)
- 遇到问题----linux-----linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 遇到问题----linux-----linux 打开文件数 too many open files 解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- android jni打开文件数 too many open files 解决方法
- 在Linux中打开了太多文件(Too many open files)的三种解决方法
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files解决方法