设置 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-04-11 266 次阅读
# 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
Comments NOTHING