1. 查看最大打开文件数量:
#ulimit -a
……
open files (-n) 1024
……
2. 临时更改:
ulimit -n 40960
3. 永久更改:
vi /etc/security/limits.conf:
* soft nofile 8192
* hard nofile 20480
reboot
本文介绍如何在Linux系统中查看当前的最大打开文件数限制,并提供了两种修改此限制的方法:临时通过ulimit命令更改及通过编辑配置文件实现永久更改。
1. 查看最大打开文件数量:
#ulimit -a
……
open files (-n) 1024
……
2. 临时更改:
ulimit -n 40960
3. 永久更改:
vi /etc/security/limits.conf:
* soft nofile 8192
* hard nofile 20480
reboot
2793
1929

被折叠的 条评论
为什么被折叠?
