所有
我想将核心文件大小永久设置为无限制。 阅读它,建议修改/etc/security/limits.conf。 我这样做了以下几行:
我在更改后重新启动并发出ulimit -a并且core仍然设置为0。 无法理解为什么设置不起作用。什么可以覆盖它?
答案 0 :(得分:9)
试试这个:
* soft nofile 10000
* hard nofile 10000
并将此行添加到.profile
文件,f.e。 root
/root/.profile
ulimit -c 10000
或/etc/profile
中的所有用户。
请记住:对于远程用户:/etc/pam.d/sshd
和su /etc/pam.d/su
session required /lib/security/pam_limits.so
答案 1 :(得分:2)
使用此命令
ulimit -SHn 65535
答案 2 :(得分:0)
如果您正在做docker-compose up并且遇到问题
启动Apache httpd Web服务器:apache2 / usr / sbin / apache2ctl:99:ulimit:错误设置限制(不允许操作)
请重新启动您的Docker服务 sudo服务docker restart