红联Linux门户
Linux帮助

shutdown 关机失败

发布时间:2009-01-17 15:59:46来源:红联作者:niaozaijiao
我刚装的红旗6.0,在字符模式下 用shutdown now 命令关机失败。我是在虚拟机上装的linux。小弟在此请高手指点。如小弟说的情况不清楚,请说明下。
文章评论

共有 13 条评论

  1. lugt 于 2009-01-19 08:21:58发表:

    好像是睡眠^o^ 可以用-c

  2. qtwdftxvt 于 2009-01-18 17:48:50发表:

    说的不错,就是要加 -h 参数。

  3. xuhengxing 于 2009-01-18 16:39:13发表:

    shutdown后面要跟参数得

    我开始和你一样

    用shutdown 关机 达不到效果!

  4. 蔡万钊 于 2009-01-18 01:27:17发表:

    poweroff
    这个更好

  5. xfiles200805 于 2009-01-17 20:04:02发表:

    7# 很正确

    学会使用帮助命令 man
    man shutdown

  6. History 于 2009-01-17 17:48:38发表:

    如上楼所讲

  7. niaozaijiao 于 2009-01-17 16:54:14发表:

    谢谢

  8. winxpuser 于 2009-01-17 16:41:34发表:

    哦.....没事多用下man 命令 例如 $ man shutdown
    查看选项 ,,,,,,,,
    OPTIONS
    -r Requests that the system be rebooted after it has been brought
    down.

    -h Requests that the system be either halted or powered off after
    it has been brought down, with the choice as to which left up to
    the system.

    -H Requests that the system be halted after it has been brought
    down.

    -P Requests that the system be powered off after it has been
    brought down.

    -c Cancels a running shutdown. TIME is not specified with this
    option, the first argument is MESSAGE.

    -k Only send out the warning messages and disable logins, do not
    actually bring the system down.


    虽然在控制台下是英语.......但应该看懂不会很难把


    .....

  9. niaozaijiao 于 2009-01-17 16:34:04发表:

    没有加 -h 谢谢 大哥指点。装linux的电脑不在实验室,我回家试试,晚上我截个图来。望大哥能不灵赐教。

  10. winxpuser 于 2009-01-17 16:30:24发表:

    ........shutdown -h now 你没加上 -h参数把?

    或者 直接输入 init 0 关机
    输入 init 6 重启...

  11. niaozaijiao 于 2009-01-17 16:25:20发表:

    大哥,小弟笨,请说明白点!

  12. winxpuser 于 2009-01-17 16:12:28发表:

    shutdown -h now
    init 0

  13. niaozaijiao 于 2009-01-17 16:06:08发表:

    大哥,救我!!