ulimit -a 查看所有

linux 修改文件最大数

open files (-n) 1024 是linux操作系统对一个进程打开的文件句柄数量的限制(也包含打开的套接字数量)

ulimit -SHn 10000 ##临时修改

永久修改

cat >> /etc/security/limits.conf <<EOF
* soft nofile 102400
* hard nofile 409600
* soft nproc 2048
* hard nproc 4096
EOF

 

相关文章:

  • 2022-01-07
  • 2022-02-06
  • 2021-12-03
  • 2021-08-17
猜你喜欢
  • 2022-02-01
  • 2021-11-06
相关资源
相似解决方案