每当我运行命令时:
updatedb
我收到消息:
File size limit exceeded (core dumped)
这是为什么 ?
我知道定位命令利用相关实用程序创建的数据库,更新数据库。大多数 Linux 系统每天自动运行一次。但是,您可以随时通过运行更新数据库以 root 用户身份从命令行。
更新 :
root@node1:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) 2001
pending signals (-i) 23227
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 23227
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
答案1
您的文件大小仅限于2001
块。
根据此教程增加使用:
vi /etc/security/limits.conf
相比之下,我的库存系统具有:
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127556
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 127556
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited