core文件设置
1.取消大小限制;
vi /etc/profile
ulimit -c unlimited
2.添加进程名
vi /proc/sys/kernel/core_pattern
添加下面的内容:
core.%p_%e
sysctl -w kernel.core_uses_pid=1
sysctl -w kernel.core_pattern=/corefile/core-%p-%s-%t
source ~/.bash_profile
标签:-%,kernel,core,vi,文件,设置,pattern From: https://www.cnblogs.com/music-liang/p/16969715.html