linux伺服器重啟命令

2021-10-14 15:41:49 字數 617 閱讀 7801

shutdown -h now  --立即關機 

shutdown -h 10:53 --到10:53關機,如果該時間小於當前時間,則到隔天

shutdown -h +10 --10分鐘後自動關機

shutdown -r now --立即重啟

2、reboot命令

reboot表示立即重啟,效果等同於shutdown -r now。

3、init命令

init是所有程序的祖先﹐它的程序號始終為1﹐所以傳送term訊號給init會終止所有的 使用者程序﹑守護程序等。shutdown 就是使用這種機制。init定義了8個執行級別(runlevel),init 0為關機﹐init 1為重啟。

4、halt命令

halt命令是最簡單的關機命令,其實就是呼叫shutdown -h。halt執行時﹐不理會目前系統狀況下,進行硬體關機;殺死應用程序﹐執行sync系統呼叫﹐檔案系統寫操作完成後就會停止核心。

5、poweroff命令

poweroff表示立即關機,效果等同於shutdown -h now,在多使用者模式下(run level 3)不建議使用。

**:linux伺服器重啟命令是什麼-linux運維-php中文網

Linux伺服器重啟命令大全

一 linux 的五個重啟命令 1 shutdown 2 poweroff 3 init 4 reboot 5 halt 二 五個重啟命令的具體說明 shutdown reboot 在linux下一些常用的關機 重啟命令有shutdown halt reboot 及init,它們都可以達到重啟系統的...

伺服器重啟

雖然說碰壁能漲經驗,不過搞的幾個小時心裡忐忑是真的難受。每一秒都是煎熬。啟動nginx服務 nginx c usr local nginx nginx conf nginx.conf 說明 其中 usr local nginx nginx conf nginx.conf是你自己的nginx.conf...

linux伺服器重啟指令

一 linux 的五個重啟命令 1 shutdown 2 poweroff 3 init 4 reboot 5 halt 二 五個重啟命令的具體說明 shutdown reboot 在linux下一些常用的關機 重啟命令有shutdown halt reboot 及init,它們都可以達到重啟系統的...