本文共 1802 字,大约阅读时间需要 6 分钟。
[root@digoal ~]# ulimit -acore file size (blocks, -c) unlimiteddata seg size (kbytes, -d) unlimitedscheduling priority (-e) 0file size (blocks, -f) unlimitedpending signals (-i) 30425max locked memory (kbytes, -l) unlimitedmax memory size (kbytes, -m) unlimitedopen files (-n) 1048576pipe size (512 bytes, -p) 8POSIX message queues (bytes, -q) 819200real-time priority (-r) 0stack size (kbytes, -s) 10240cpu time (seconds, -t) unlimitedmax user processes (-u) unlimitedvirtual memory (kbytes, -v) unlimitedfile locks (-x) unlimited
* soft nofile unlimited* hard nofile unlimited
[root@digoal ~]# ulimit -n unlimited-bash: ulimit: open files: cannot modify limit: Operation not permitted[root@digoal ~]# ulimit -n 1[root@digoal ~]# ulimit -n 1024000000-bash: ulimit: open files: cannot modify limit: Operation not permitted[root@digoal ~]# ulimit -n 9999999999-bash: ulimit: open files: cannot modify limit: Operation not permitted[root@digoal ~]# ulimit -n 9999999-bash: ulimit: open files: cannot modify limit: Operation not permitted[root@digoal ~]# ulimit -n 999999[root@digoal ~]#最终发现-n 最大可以设置为1024*1024= 1048576
[root@digoal ~]# ulimit -n 1048576[root@digoal ~]# ulimit -n 1048577-bash: ulimit: open files: cannot modify limit: Operation not permitted
转载地址:http://ijntx.baihongyu.com/