詳解 Linux中的關(guān)機(jī)和重啟命令
詳解 Linux中的關(guān)機(jī)和重啟命令
一 shutdown命令
shutdown [選項(xiàng)] 時(shí)間
選項(xiàng):
-c:取消前一次關(guān)機(jī)命令 -h:關(guān)機(jī) -r:重啟
二 shutdown實(shí)戰(zhàn)
[root@localhost tmp]# date Sat Jul 15 09:28:35 CST 2017 [root@localhost tmp]# shutdown -r 05:30 Shutdown scheduled for Sun 2017-07-16 05:30:00 CST, use 'shutdown -c' to cancel. [root@localhost tmp]# shutdown -r 05:30 & [1] 4936 [root@localhost tmp]# Shutdown scheduled for Sun 2017-07-16 05:30:00 CST, use 'shutdown -c' to cancel. Broadcast message from root@localhost.localdomain (Sat 2017-07-15 09:30:00 CST): The system is going down for reboot at Sun 2017-07-16 05:30:00 CST! ^C [1]+ Done shutdown -r 05:30 [root@localhost tmp]# shutdown -c Broadcast message from root@localhost.localdomain (Sat 2017-07-15 09:31:03 CST): The system shutdown has been cancelled at Sat 2017-07-15 09:32:03 CST!
三 其他關(guān)機(jī)命令
halt init 0 poweroff
四 其他重啟命令
reboot init 6
五 系統(tǒng)運(yùn)行級(jí)別
六 查看系統(tǒng)運(yùn)行級(jí)別以及修改系統(tǒng)的默認(rèn)級(jí)別
runlevel cat /etc/inittab
七 登出
logout
八 實(shí)戰(zhàn)
[root@localhost tmp]# [root@localhost tmp]# runlevel N 5 [root@localhost tmp]# init 3 PolicyKit daemon disconnected from the bus. We are no longer a registered authentication agent. [root@localhost tmp]# runlevel 5 3 [root@localhost tmp]# logout
如有疑問請(qǐng)留言或者到本站社區(qū)交流討論,以上就是Linux 中關(guān)機(jī)重啟的命令詳解,感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
- Linux (Ubuntu)休眠,掛起,待機(jī),關(guān)機(jī)的命令詳細(xì)介紹
- php控制linux服務(wù)器常用功能 關(guān)機(jī) 重啟 開新站點(diǎn)等
- 輕松掌握Linux關(guān)機(jī)重啟命令
- linux中shell腳本實(shí)現(xiàn)下載完關(guān)機(jī)
- 詳解linux 關(guān)機(jī)命令總結(jié)
- Linux管理員手冊(cè)(5)--引導(dǎo)和關(guān)機(jī)
- Linux關(guān)機(jī)時(shí)執(zhí)行指定腳本功能實(shí)現(xiàn)
- Linux 使用init命令實(shí)現(xiàn)關(guān)機(jī),重啟,切換模式
- Linux低電量自動(dòng)關(guān)機(jī)的實(shí)現(xiàn)方法
相關(guān)文章
CentOS 7 下LAMP實(shí)現(xiàn)及基于https的虛擬化主機(jī)
這篇文章主要介紹了CentOS 7 下LAMP實(shí)現(xiàn)及基于https的虛擬化主機(jī)的相關(guān)資料,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2016-11-11Linux 單個(gè)tomcat多實(shí)例部署shell腳本詳解
這篇文章主要介紹了Linux 單個(gè)tomcat多實(shí)例部署shell腳本詳解的相關(guān)資料,需要的朋友可以參考下2017-02-02Centos7.4 zabbix3.4.7源碼安裝的方法步驟
這篇文章主要介紹了Centos7.4 zabbix3.4.7源碼安裝的方法步驟,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2018-06-06Discuz 7.0偽靜態(tài)ReWrite的.htaccess規(guī)則
在確定您的服務(wù)器支持偽靜態(tài)ReWrite后,您可以通過修改設(shè)置.htaccess文件來實(shí)現(xiàn)Discuz論壇的偽靜態(tài)功能2010-12-12Linux內(nèi)核啟動(dòng)流程之start_kernel問題
這篇文章主要介紹了Linux內(nèi)核啟動(dòng)流程之start_kernel問題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2024-01-01