注意:
重启或关机之前,运行sync命令,把当前内存中的数据写入磁盘,防止数据丢失。
关机:
shutdown -h now
halt
poweroff
init 0
重启:
shutdown -r now
reboot
init 6
注意:
重启或关机之前,运行sync命令,把当前内存中的数据写入磁盘,防止数据丢失。
关机:
shutdown -h now
halt
poweroff
init 0
重启:
shutdown -r now
reboot
init 6