Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55314
  • 博文数量: 8
  • 博客积分: 218
  • 博客等级: 入伍新兵
  • 技术积分: 95
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-09 11:20
文章分类

全部博文(8)

文章存档

2014年(1)

2012年(7)

我的朋友

分类: LINUX

2012-05-08 09:07:29

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
 
阅读(1165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~