LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 966|回复: 1

修改了core文件的产生格式,但重启后又无效了?

[复制链接]
发表于 2007-5-9 10:23:43 | 显示全部楼层 |阅读模式
系统是SUSE10.2,在管理员下使用echo "core.%s.%e" > core_pattern命令修改了/proc/sys/kernel/core_pattern文件,其他没改。之后所生成的也都是类似于"core.11.hello"这样的core文件。但是系统重启以后,core_pattern文件又被自动改回"core"了。
请问这是为什么,有什么办法可以永久改变core文件格式?
 楼主| 发表于 2007-5-11 10:43:34 | 显示全部楼层
to make the changes permanent, add the following line to /etc/sysctl.conf:
kernel.core_pattern = core.%e.%p

sysctl is a similar tool to ulimit: It allows to configure kernel parameters at runtime. If you wish to keep settings persistent across reboots you should edit /etc/sysctl.conf - be aware that wrong settings may break things in unforeseen ways.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表