[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
原文地址:http://blog.51cto.com/sf1314/2108120