神奇的系统请求键SysRq

什么是SysRq

It is a 'magical' key combo you can hit which the kernel will respond to
regardless of whatever else it is doing, unless it is completely locked up.

如何使能SysRq?

内核配置SysRq

若使用SysRq,需要在内核配置时设置Magic SysRq key(CONFIG_MAGIC_SYSRQ)为Y,内核配置信息如下:

  CONFIG_MAGIC_SYSRQ:                                                 If you say Y here, you will have some control over the system even  if the system crashes for example during kernel debugging (e.g., youwill be able to flush the buffer cache to disk, reboot the system   immediately or dump some status information). This is accomplished  by pressing various keys while holding SysRq (Alt+PrintScreen). It  also works on a serial console (


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部