"File too large" error when using scp in AIX

##

ulimit 设置不正确。

Hi Clifford,

You were correct. Here is the 'ulimit -a' output:
serverapp02:/# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) 32768
>>>coredump(blocks) 2097151
nofiles(descriptors) 2000
serverapp02:/#
So should I just triple the coredump(blocks) size to 6291453 so I can scp my
large file that is over 2GB?

Thanks,
BP

/etc/security/limits 将stack值设为了-1 为何用ulimit -a 看到的是   4194304?
   
   出现这种问题的原因是在您的操作系统中设置了默认的stack的“硬限制”(hard limit)。要解决这个问题,您需要在/etc/security/limits中设置stack的新的硬限制(hard limit)为无限,然后再设置stack的限制。如:
   default:
   fsize = 2097151
   core = 2097151                 《-coredump
   cpu = -1
   data = 262144
   rss = 65536
   stack_hard = -1
   stack = -1
   nofiles = 2000

猜你喜欢

转载自www.cnblogs.com/feiyun8616/p/12484570.html