ubuntu16修改maxopenfiles
kevin.Zhu 发布于:2017-3-18 14:28 分类:Linux 有 18 人浏览,获得评论 0 条
/etc/sysctl.conf
增加
fs.file-max = 131072
sysctl -p
/etc/security/limits.conf
增加
* soft nproc 1020000
* hard nproc 1020000
* soft nofile 1020000
* hard nofile 1020000
root soft nproc 1020000
root hard nproc 1020000
root soft nofile 1020000
root hard nofile 1020000
/etc/pam.d/common-session
增加
session required pam_limits.so
增加
fs.file-max = 131072
sysctl -p
/etc/security/limits.conf
增加
* soft nproc 1020000
* hard nproc 1020000
* soft nofile 1020000
* hard nofile 1020000
root soft nproc 1020000
root hard nproc 1020000
root soft nofile 1020000
root hard nofile 1020000
/etc/pam.d/common-session
增加
session required pam_limits.so