Linux关机的方式有4种:

(1)、halt

(2)、shutdown -h,在指定时间内关机。如 shutdown -h +2min,表示2分钟内关机。

       shutdown -h now ,表示立马关机。

       shutdown -r now 表示重启。

       shutdown -c 表示撤销关机。

(3)、poweroff

(4)、init 0