/ etc / security / limits. conf 설정

<pre name="code" class="python">* 		soft 	nofile 		65535 
* 		hard 	nofile 		65535 

* 		soft 	nproc 		65535 
* 		hard 	nproc 		65535 


soft nofile     ,hard nofile     ,           。


soft 	nproc  hard 	nproc     


zjzc01:/root# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 7808
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 7808
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


  open files   1024


   :

# End of file
 * 		soft 	nofile 		6553 
 * 		hard 	nofile 		7553


open files                      (-n) 6553


root soft nofile 1000 
root hard nofile 1200
soft nofile     ,hard nofile     ,           。        ,root       1000,    1200,   root             1000,        shell。

type:  soft,hard   -,soft              。hard              。soft       hard    。  -          soft   hard   。


* 		soft 	nproc 		65530
* 		hard 	nproc 		65531

max user processes              (-u) 65531

  ulimit -n  ,     ulimit -n 1000,      shell                      1000.

좋은 웹페이지 즐겨찾기