Chinaunix首页 | 论坛 | 博客
  • 博客访问: 119093
  • 博文数量: 69
  • 博客积分: 1550
  • 博客等级: 上尉
  • 技术积分: 676
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-22 11:13
文章分类

全部博文(69)

文章存档

2011年(1)

2010年(5)

2008年(4)

2007年(46)

2006年(13)

我的朋友

分类: LINUX

2008-04-18 12:35:46

改变linux下用户打开文件数限制的方法

在/etc/security/limits.conf文件中加入下列行:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

在/etc/pam.d/login文件中加入下列行:
session required /lib/security/pam_limits.so
阅读(1101) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~