shutdown命令不能关机
Tofloor
poster avatar
kewuyong
deepin
2019-06-01 06:40
Author
题外话:第一次用linux  ,被win的2345流忙软件搞到烦。现只用deepin,只做普通上网听歌看新闻用。

问题如题。shutdown -h 22:00   然后就一直报错,因为没截图,说什么cpu没停下来的bug,然后一直尝试停止关机,关到第二天醒来还在报错。

另外,deepin的关机很慢,关机提示音乐已经过了,然后一直在滚代码,滚了有几分钟才能关机,这是正常的吗。





Reply Favorite View the author
All Replies
avatar
Ziggy
deepin
2019-06-01 07:31
#1
直接sudo shutdown now
Reply View the author
avatar
superendermansm
deepin
2019-06-01 07:40
#2
升级一下内核试试。教程论坛里有
Reply View the author
avatar
edeas
deepin
2019-06-02 04:40
#3
用这条很好关机,虽然我不知道它啥意思。
在桌面新建个sh文件,内容如下:

  1. #!/bin/bash
  2. gksudo init 0
Copy the Code


写好以后记得鼠标右键点击-属性-权限管理-勾选“允许以程序执行”
Reply View the author
avatar
funtoo
deepin
2019-06-02 04:48
#4
https://bbs.deepin.org/post/178654
用这条很好关机,虽然我不知道它啥意思。
在桌面新建个sh文件,内容如下:

init 0 = shutdown -h now = poweroff = halt -p
Reply View the author
avatar
le******ly@163.com
deepin
2019-06-02 05:27
#5
好像现在最正规的写法是  sudo systemctl   poweroff
Reply View the author
avatar
观摩
deepin
2019-06-02 06:39
#6
通过大家的回复又学了好几条命令
Reply View the author
avatar
flyinsolo
deepin
2019-06-03 00:56
#7
本帖最后由 flyinsolo 于 2019-6-2 16:57 编辑

init 0  慎用,特别是在生产环境,不做任何保存忽略所有错误的关机。有可能关完机你的系统就再也启不来了,连日志都没有很难排错的。
init 1 重启并进入单用户模式(很少在桌面环境用)init 6 重启并进入多用户模式(相当于巨硬系统的重启)
其他的比较少用,还有部分是系统保留。
Reply View the author
avatar
edeas
deepin
2019-06-04 22:31
#8
https://bbs.deepin.org/post/178654
init 0  慎用,特别是在生产环境,不做任何保存忽略所有错误的关机。有可能关完机你的系统就再也启不来了, ...

多谢提醒
Reply View the author