環境:CentOS6.3 minimal
==========================================================================================
1、下載
鏡像地址:http://mirrors.stuhome.net/centos/6.3/isos/x86_64/
CentOS-6.3-x86_64-netinstall.iso
CentOS-6.3-x86_64-minimal.iso
CentOS-6.3-x86_64-bin-DVD1.iso
CentOS-6.3-x86_64-bin-DVD2.iso
CentOS-6.3-x86_64-LiveCD.iso
CentOS-6.3-x86_64-LiveDVD.iso
2、安裝
安裝環境:Oracle VM VirtualBox 4.2.6
3、登出、關機和重啟登出
$ logout
$ Ctrl + D
關機
$ poweroff
重啟
$ reboot
==========================================================================================
註:shutdown命令可以關閉所有程式,依照使用者的需要,重新啟動或關機。
1、立即關機:-h 參數讓系統立即關機。範例如下:
$ shutdown –h now ← 要求系統立即關機
2、指定關機時間:time 參數可指定關機的時間,或設定多久時間後運行shutdown命令,範例如下:
$ shutdown now ← 立刻關機
$ shutdown +5 ← 5分鐘後關機
$ shutdown 10:30 ← 在10:30時關機
3、關機後自動重啟:-r 參數設定關機後重新啟動。範例如下:
$ shutdown -r now ← 立刻關閉系統並重啟
$ shutdown -r 23:59 ← 指定在23:59時重啟動
Usage: shutdown [OPTION]... TIME [MESSAGE]
Bring the system down.
Options:
-r reboot after shutdown
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
-c cancel a running shutdown
-k only send warnings, don't shutdown
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
TIME may have different formats, the most common is simply the word 'now' which
will bring the system down immediately. Other valid formats are +m, where m is
the number of minutes to wait until shutting down and hh:mm which specifies the
time on the 24hr clock.