如何永久修改Linux的open files数量

1.使用root用户编辑/etc/security/limits.conf

vim /etc/security/limits.conf

2.添加如下内容

* soft nofile 65536

*hard nofile 65536

image

3.保存

4.重新登录

5.验证

ulimit -a

image

证明已修改成功

posted @   program_keep  阅读(380)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示