html tool

2016年10月10日星期一

修改linux最大文件句柄数


来源:http://www.cnblogs.com/likehua/p/3831331.html
查看当前最大文件句柄数
ulimit -a

1、ulimit -n 2048 [只对当前登录有效]

2.修改linux系统参数。vi /etc/security/limits.conf 添加
*  soft  nofile  65536
*  hard  nofile  65536
修改以后保存,注销当前用户,重新登录,执行ulimit -a ,ok ,参数生效了:

没有评论:

发表评论