强制删除linux_强制Linux重新启动

强制删除linux

How to force Linux to reboot when the reboot command does not work.

reboot命令不起作用时,如何强制Linux重新reboot

Enable the use of the magic SysRq option:

启用魔术SysRq选项:

# echo 1 > /proc/sys/kernel/sysrq

Reboot the machine:

重新启动机器:

# echo b > /proc/sysrq-trigger
Answered by anonymous.
匿名回答。


Even if you could not log on the system but sshd is working, you can force the Linux to reboot by:

即使您无法登录系统但sshd仍在运行,也可以通过以下方式强制Linux重新启动:

ssh root@server_home 
'echo 1 > /proc/sys/kernel/sysrq; echo b > /proc/sysrq-trigger'


You can find a list of all the SysRq commands at:

您可以在以下位置找到所有SysRq命令的列表:

https://en.wikipedia.org/wiki/Magic_SysRq_key

https://zh.wikipedia.org/wiki/Magic_SysRq_key

For example, shut off a system by ‘o’, invoke OOM killer by ‘f’.

例如,通过“ o”关闭系统,通过“ f”调用OOM杀手。



If you want to force Linux to shut down, use o instead of b:

如果要强制关闭Linux,请使用o代替b

echo 1 > /proc/sys/kernel/sysrq; echo o > /proc/sysrq-trigger

翻译自: https://www.systutorials.com/force-linux-to-reboot/

强制删除linux

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值