- 命令行级别
命令行中敲入 ulimit -n 12345
- 用户级别
编辑/etc/security/limits.conf: 文件,插入一行:userx hard nofile 12345
- 系统级别
在/etc/sysctl.conf文件中加入一行 fs.file-max=12345,然后在命令行中输入:sysctl -p ,使其生效
命令行中敲入 ulimit -n 12345
编辑/etc/security/limits.conf: 文件,插入一行:userx hard nofile 12345
在/etc/sysctl.conf文件中加入一行 fs.file-max=12345,然后在命令行中输入:sysctl -p ,使其生效