1. 程式人生 > >centos7使用命令重啟或關機

centos7使用命令重啟或關機

安裝GNOME的朋友們首先切換到字元介面:

先登陸進入系統,進入圖形化介面:

然後按Ctrl+Alt+F6(筆記本的是Ctrl+Alt+shift+Fn),進入字元介面

(最小化安裝的直接輸入即可)

關機命令:shutdown或poweroff

shutdown:shutdown -h now  #立即關機(shutdown -h 10   #10分鐘後關機)

poweroff:直接輸入poweroff即可:

重啟命令:shutdown或reboot

shutdown:shutdown -r now  #立即重新啟動  (shutdown -r +10  #10分鐘之後重啟)

reboot:直接輸入即可。