【发布时间】:2014-04-09 11:29:04
【问题描述】:
我正在尝试在etc/security/limits.conf 中设置 Ubuntu 中打开文件的最大数量的值,但是当我触发命令 ulimit -a 时,我没有得到相同的值。
我在 limits.conf 中添加以下值:
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
但在解雇ulimit -a 时,我得到了:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 139264
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 30048
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
max rt priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 139264
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
【问题讨论】: