码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu ulimit 设置

时间:2016-01-11 21:50:18      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:

永久设置ubuntu ulimit

打开/etc/security/limits.conf

添加

* hard nofile 65535
* soft nofile 65535
root hard nofile 65535
root soft nofile 65535

或者直接执行

echo "* hard nofile 65535
* soft nofile 65535
root hard nofile 65535
root soft nofile 65535">>/etc/security/limits.conf

 

修改

vim /etc/pam.d/su

注释掉(默认已经是注释掉)

session required pam_limits.so

搞定,重启即可。。。重启后可以查看ulimit -n是否显示为65535

ubuntu ulimit 设置

标签:

原文地址:http://www.cnblogs.com/yi220284/p/5122386.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!