赞
踩
系统级:当前系统可打开的最大数量,通过fs.file-max参数可修改
sysctl -a | grep 'file-max'
cat /proc/sys/fs/file-max
用户级:指定用户可打开的最大数量,修改/etc/security/limits.conf
进程级:单个进程可打开的最大数量,通过fs.nr_open参数可修改
cat /proc/sys/fs/nr_open
sysctl -a | grep nr_open
This denotes(标志、表示) the maximum number of file-handles(文件句柄) a process can allocate(分配). Default value is 1024*1024 (1048576) which should be enough for most machines. Actual(实际的) limit depends on RLIMIT_NOFILE resource limit.
man -k UUID //搜索man手册关键字
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。