1. 程式人生 > >AIX文件Ulimit修改

AIX文件Ulimit修改

AIX文件Ulimit修改

查看文件:

[root@sapdev:/etc/security/]#ls -ls |grep limits

4 -rw-r----- 1 root security 1361 Oct 11 13:53 limits


編輯:

vi /etc/security/limits-->

default:

fsize = 2097151 --> -1

core = 2097151 --> -1

cpu = -1

data = 262144 --> -1

rss = 65536 --> -1

stack = 65536 --> -1

nofiles = 2000 --> -1

:wq


即修改成

default:

fsize = -1

fsize_hard = -1

core = -1

core_hard = -1

cpu = -1

data = -1

rss = -1

stack = -1

nofiles = -1

修改後重新登錄生效

查看參數,未改變:

[root@sapdev:/etc/security/]#ulimit -a

time(seconds) unlimited

file(blocks) 2097151

data(kbytes) 131072

stack(kbytes) 32768

memory(kbytes) 32768

coredump(blocks) 2097151

nofiles(descriptors) 2000

[root@sapdev:/etc/security/]#exit


重新登錄,再次查看,已經更改:

[root@sapdev://]#ulimit -a

time(seconds) unlimited

file(blocks) unlimited

data(kbytes) unlimited

stack(kbytes) 4194304

memory(kbytes) unlimited

coredump(blocks) unlimited

nofiles(descriptors) unlimited


AIX文件Ulimit修改