开启coredump
sudo echo "ulimit -c unlimited" >> /etc/profile
source /etc/profile
开启pid后缀
sudo sysctl -w "kernel.core_uses_pid=1" >/dev/null
修改生成的core文件命名模版
sudo sysctl -w "kernel.core_pattern=/tmp/core.%e.%p.%t" >/dev/null
sudo echo "ulimit -c unlimited" >> /etc/profile
source /etc/profile
sudo sysctl -w "kernel.core_uses_pid=1" >/dev/null
sudo sysctl -w "kernel.core_pattern=/tmp/core.%e.%p.%t" >/dev/null
本文标题:linux下core文件设置
本文链接:https://www.haomeiwen.com/subject/nkzosftx.html
网友评论