2012-01-20 58 views
1

不幸的是,在試圖刪除以前的核心轉儲時,我將核心文件大小硬限制設置爲0.是否有方法可以更改ulimit參數的硬限制?是否可以增加Mac OS 10.7(OS X Lion)中ulimit參數的硬限制?

host-101-178:Labs evan$ ulimit -c 0 
host-101-178:Labs evan$ ulimit -c 1000000 
-bash: ulimit: core file size: cannot modify limit: Operation not permitted 
host-101-178:Labs evan$ ulimit -c unlimited 
-bash: ulimit: core file size: cannot modify limit: Operation not permitted 
host-101-178:Labs evan$ ulimit -a 
core file size   (blocks, -c) 0 
data seg size   (kbytes, -d) unlimited 
file size    (blocks, -f) unlimited 
max locked memory  (kbytes, -l) unlimited 
max memory size   (kbytes, -m) unlimited 
open files      (-n) 2560 
pipe size   (512 bytes, -p) 1 
stack size    (kbytes, -s) 8192 
cpu time    (seconds, -t) unlimited 
max user processes    (-u) 709 
virtual memory   (kbytes, -v) unlimited 
host-101-178:Labs evan$ ulimit -c unlimited 
-bash: ulimit: core file size: cannot modify limit: Operation not permitted 
+0

** sysctl -a |的輸出是什麼? grep core **說? – synthesizerpatel

回答

2

註銷並重新登錄,硬核大小限制將恢復爲默認值。使用

ulimit -S -c 

更改軟限制。