linux 修改文件最大数

ulimit -a 查看所有

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

 

posted @ 2018-06-21 10:57  Mr.zou  阅读(226)  评论(0编辑  收藏  举报