1. Edit /etc/security/limits.conf, and uncomment the line as follows:
- 42 #
-
- 43 #
- 44
- 45 * soft core unlimited
2. Edit /etc/sysctl.conf, and add lines as follows:
- 27 kernel.core_uses_pid = 1
- 28 kernel.core_pattern = /home/coredumps/core-%e-%s-%u-%g-%p-%t
- 29 fs.suid_dumpable = 2
3. Edit /etc/sysconfig/init, and add a line as follows:
- 26 DAEMON_COREFILE_LIMIT='unlimited'
4. Edit /etc/systemd/system.conf, and uncomment the following lines:
- 10 [Manager]
- 11 #LogLevel=info
- 12 #LogTarget=journal-or-kmsg
- 13 #LogColor=yes
- 14 #LogLocation=no
- 15 DumpCore=yes
- ...
- 34 #DefaultLimitSTACK=
- 35 DefaultLimitCORE=infinity
- 36 #DefaultLimitRSS=
- 37 #DefaultLimitNOFILE=
- 38 #DefaultLimitAS=
- ...
阅读(2360) | 评论(0) | 转发(0) |