使用下面命令可以查看openfile数量

ulimit -a

【linux】linux修改open file 大小

 

 

linux修改open file 大小,修改步骤如下:

1》修改file-max

 

修改文件:

vi /etc/sysctl.conf

在文件末尾加入:

fs.file-max = 6553560

 

保存文件,重启后生效

 

2》修改ulimit的open file,系统默认的ulimit对文件打开数量的限制是1024

 

修改文件:

vi /etc/security/limits.conf

在文件中加入:

soft nofile 6553560
hard nofile 6553560

 

修改完成,保存文件,重启后生效

 

 

原文地址:https://www.cnblogs.com/chenpingzhao/p/5563602.html

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-12-16
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-09-15
  • 2021-08-24
相关资源
相似解决方案