linux 杀死进程失败,linux - Ubuntu关闭失败“ *杀死所有剩余进程…” - Ubuntu问答...

问题描述

我已经重新安装了Ubuntu Server。 “reboot”有效,但是在* Killing all remaining processes...步骤上关闭失败。我在用:

sudo shutdown now

在失败之后,由[fail]指示(“fail”为红色),我收到此消息:

* will now switch to single-user mode

没有其他错误消息。程序退出后,用户为root。

关于如何trouble-shoot的任何想法,或者可能是什么问题?

Ubuntu版本是11.10,在此之前我运行了sudo aptitude update && sudo aptitude dist-upgrade。

最佳方案

我经历过同样的事情,所以我不得不使用暂停

shutdown -h now

次佳方案

从shutdown的手册页中:

… runlevel 1 is used to put to system into a state where administrative tasks can be per- formed; this is the default if neither the -h or -r flag is given to shutdown.”

shutdown从用户角度关闭了系统,因为linux被设计为multi-user系统,因此system-wide消息和可选的时间延迟。

要关闭计算机,请使用-h选项。

而且我不会担心某些进程无法及时终止,这可能就是您收到的[fail]消息的含义。

第三种方案

尝试使用sudo reboot now重新引导时遇到了此问题。 sudo shutdown now也失败。在这两种情况下,系统都切换到single-user模式并停止。

停止系统是不可行的,因为它是远程的,我不想走到地下室重新打开它。起作用的是sudo shutdown -r 0。

我正在Asus Aspire One上网本上运行Ubuntu 13.04服务器。

我知道这个线程很旧,但是我在当前发行版中遇到了这个问题。

参考资料

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值