如何设置进程内核文件名
Issue
- 为了便于对 coredump 进行调试,需要有一个可执行文件名称作为内核文件的一部分。
- 一个公开的外部解决方案是使用
kernel.core_name_format可调项,但使用这个可调项出现以下错误:
# sysctl -w "kernel.core_name_format=%N-%P.core"
error: "kernel.core_name_format" is an unknown key
Environment
- Red Hat Enterprise Linux 4, 5, 6, 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.