所有
我想永久地将核心文件大小设置为无限制.阅读它,建议修改/etc/security/limits.conf.我这样做了以下几行:
我在更改后重新启动并且我发出ulimit -a并且核心仍然设置为0.无法理解为什么设置不起作用.什么可以覆盖它?
试试这个:
* soft nofile 10000
* hard nofile 10000
Run Code Online (Sandbox Code Playgroud)
并将此行添加到.profile文件中,fe为rootin/root/.profile
ulimit -c 10000
Run Code Online (Sandbox Code Playgroud)
或者对于所有用户/etc/profile.
记住:对于远程用户:/etc/pam.d/sshd和su/etc/pam.d/su
session required /lib/security/pam_limits.so
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10248 次 |
| 最近记录: |