ubuntu20 service generated core

1.Disable apport

sudo systemctl disable apport

2.set kernel.core_pattern

sudo sysctl -w kernel.core_pattern=core.%u.%p.%t

3.change ulimit

sudo ulimit -c unlimited

4.Core dump is in the working directory now.

你可能感兴趣的:(linux,运维,服务器)