Debian挤压并设置ulimit
发布时间:2020-12-14 01:28:05 所属栏目:Linux 来源:网络整理
导读:所有 我想永久地将核心文件大小设置为无限制. 阅读它,建议修改/etc/security/limits.conf. 我这样做了以下几行: 软核10000 root hard core 10000 我在更改后重新启动并发出ulimit -a并且core仍设置为0. 无法理解为什么设置不起作用.什么可以覆盖它? 解决方
所有
我想永久地将核心文件大小设置为无限制. >软核10000 我在更改后重新启动并发出ulimit -a并且core仍设置为0. 解决方法
试试这个:
* soft nofile 10000 * hard nofile 10000 并将此行添加到.profile文件,f.e. for root in /root/.profile ulimit -c 10000 或者/ etc / profile中的所有用户. 记住:对于远程用户:/etc/pam.d/sshd和su /etc/pam.d/su session required /lib/security/pam_limits.so (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |