进入后
shutdown now
Run Code Online (Sandbox Code Playgroud)
在终端中,我让一切正常运行,然后:
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....
Run Code Online (Sandbox Code Playgroud)
我按Ctrl+ D,它显示我登录屏幕 Debian。通过 GUI 关闭工作正常。
更新 1
似乎某些进程挂起。
此外,我通过多次重试设法关闭了服务器。最近我只安装了ntp和ntpdate,仅此而已。
我想它可能与 iptables 冲突。
Sve*_*ven 31
您需要使用-h
开关来停止系统。默认shutdown
是切换到运行级别 1(维护)。
shutdown -h now
Run Code Online (Sandbox Code Playgroud)
见man shutdown
。
使用 -h 选项关闭以请求暂停或关闭电源,而不是仅请求初始化您将进入单用户模式(这似乎是默认行为)
shutdown -h now
Run Code Online (Sandbox Code Playgroud)