SERVER:/etc # ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 96069
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 96069
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
SERVER:/etc #
Kök kullanıcının sınırını 1024'ten kalıcı olarak başka bir şeye nasıl ayarlayabilirim? Ulimit'i küresel olarak nasıl ayarlayabilirim? Değişiklikler şu anda geçerli olacak mı?
ps: Ben zaten bunun için googled ama kalıcı olarak ayarlayabilirsiniz dosyayı bulamıyorum:
SERVER:/etc # grep -RiI ulimit * 2>/dev/null | egrep -v ":#|#ulimit"
init.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
init.d/multipathd: ulimit -n $MAX_OPEN_FDS
rc.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
rc.d/multipathd: ulimit -n $MAX_OPEN_FDS
ve..:
SERVER:/etc # grep -RiI 'MAX_OPEN_FDS' * 2>/dev/null
init.d/boot.multipath:MAX_OPEN_FDS=4096
init.d/boot.multipath: if [ -n "$MAX_OPEN_FDS" ] ; then
init.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
init.d/multipathd:MAX_OPEN_FDS=4096
init.d/multipathd: if [ -n "$MAX_OPEN_FDS" ] ; then
init.d/multipathd: ulimit -n $MAX_OPEN_FDS
rc.d/boot.multipath:MAX_OPEN_FDS=4096
rc.d/boot.multipath: if [ -n "$MAX_OPEN_FDS" ] ; then
rc.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
rc.d/multipathd:MAX_OPEN_FDS=4096
rc.d/multipathd: if [ -n "$MAX_OPEN_FDS" ] ; then
rc.d/multipathd: ulimit -n $MAX_OPEN_FDS
SERVER:/etc #