Linux系统dameon程序的core dump设置

To enable dumps for every daemon:

ulimit -c unlimited >/dev/null 2>&1 (-c maximum size of core files)
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1

Dump for system :
DAEMON_COREFILE_LIMIT='unlimited'

The same for every daemon (in /etc/sysconfig/_daemon_): DAEMON_COREFILE_LIMIT='unlimited'

Dump for SUID programs:
echo 1 > /proc/sys/kernel/suid_dumpable

In /etc/sysctl.conf:
kernel.core_uses_pid = 1
kernel.suid_dumpable = 1

and sysctl -p

你可能感兴趣的:(linux)