linux – 提供root密码进行维护

前端之家收集整理的这篇文章主要介绍了linux – 提供root密码进行维护前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
进入后
shutdown now

在终端我得到一切正常运行,然后:

All processes ended withing 2 seconds...done
INIT: Going single user
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Give root password for maintenance(or....

我按下Ctrl D,它显示登录屏幕Debian.通过GUI关闭正常工作.

更新1

似乎有些过程挂起了.

此外,我已经设法通过几次重试关闭服务器.最近我只安装了ntp和ntpdate,仅此而已.

我想它可能与iptables冲突.

解决方法

您需要使用-h开关来暂停系统.关闭的默认设置是切换到运行级别1(维护).
shutdown -h now

见man shutdown.

原文链接:https://www.f2er.com/linux/402140.html

猜你在找的Linux相关文章