Linux 关机与重启命令

365最近提款系统维护了吗 2026-07-18 20:49:44 admin

关机命令

我们可以使用以下三种命令来关机 Linux :

1、立刻关机(需要root用户)

shutdown -h now

10 分钟后自动关机

shutdown -h 10

2、立刻关机

halt

3、立刻关机

poweroff

重启命令

重启可以使用以下两种命令:

1、最简单的是使用 reboot 命令(需要root用户)

reboot

2、也可以使用 shutdown 命令

shutdown -r now

更多参考内容

Linux shutdown 命令

Linux halt 命令

Linux poweroff 命令

Linux reboot 命令