Linux死机后怎么办


蓝屏是Windows的一大特点,但是桌面版的Linux也会死机。那死机后怎么办呢?

键盘和鼠标仍然有响应,但是窗口死了。

Ctrl+Alt+F1 切换到TTY,然后top命令找到cpu占用最高的PID,再kill -KILL PID。

鼠标键盘都没有响应了

暴力方法

使用Reset或者常按Power键,这个和Windows的方法没有区别。

使用sys rq键

一般键盘上都有sys rq键,台式机键盘一般和Prt sc共键,笔记本键盘一般和delete共键。

Sys Rq 是一种叫做系统请求的东西,用于直接向底层系统传达指令。

使用Sys Rq可以安全地重启计算机。

具体方法是:Sys Rq+ R+E+I+S+U+B

看起来有些繁琐,解释一下。

台式机键盘按Sys Rq需要使用Alt+Prt Sc而笔记本上使用Fn+Delete

REISUB各个字母的意义分别是:

R: Switch the keyboard from raw mode to XLATE mode

E: Send the SIGTERM signal to all processes except init

I: Send the SIGKILL signal to all processes except init

S: Sync all mounted filesystems

U: Remount all mounted filesystems in read-only mode

B: Immediately reboot the system, without unmounting partitions or syncing

相关内容