CentOS 设置open file

烂柯 发布于 2022-04-11 266 次阅读


设置 open file

方法一(需重启)

# vi /etc/security/limits.conf
* soft nofile 81920
* hard nofile 81920
* soft nproc 81920
* hard nproc 81920
fs.file-max=102400

方法二

ulimit -SHn 65536
fs.file-max=102400

方法三

# vi /etc/sysctl.conf
fs.file-max=102400
烂柯

最后更新于 2022-08-10