step1:
在文件/etc/security/limits.conf中增加两行:
[username] hard nofile [num]
[username] soft nofile [num]
example:
root hard nofile 16384
root soft nofile 16384
step2:
使设置生效:
su [username]
example:
su root
step3:
查看是否生效:
ulimit -a
阅读(1207) | 评论(0) | 转发(0) |