Linux之重啟reboot命令

2021-08-25 10:57:15 字數 566 閱讀 9220

reboot 用來重啟linux系統和windows系統中的restart一樣。但是機器重啟必須要root使用者才有許可權。

命令語法:

/sbin/reboot [-n] [-w] [-d] [-f] [-i]

或reboot [-n] [-w] [-d] [-f] [-i]

命令引數:

引數長引數

描敘-d

重新啟動時不把資料寫入記錄檔案/var/tmp/wtmp

-f強制重新開機,不呼叫shutdown指令的功能。

-h在系統關機或poweroff之前,將所有的硬碟處於待機模式

-i關閉網路設定之後再重新啟動系統

-n儲存資料後再重新啟動系統

-pwhen halting the system, do a poweroff. this is the default when halt is called as poweroff

-w僅做測試,並不真的將系統重新開機,只會把重開機的資料寫入/var/log目錄下的wtmp記錄檔案

--help

Linux重啟中init6與reboot的區別

init命令用於改變作業系統的執行級別。init 6是重新啟動機器。reboot也是重新啟動機器。那麼這兩個命令到底有什麼區別呢?對這兩個操作使用man命令看到的內容如下 init 6 stop the operating system and reboot to the state defined...

Linux下啟動 關閉及重啟apache命令

如果是 linux 自己帶的 apache 的話就使用命令 啟動service httpd stop 關閉service httpd restart 重新啟動 如果是自己安裝的話,我的是自己安裝的,在 usr sbin httpd目錄下,進入到 usr sbin之後再執行一下命令 啟動service...

詳解linux中nginx啟動 重啟 關閉命令

nginx c usr local nginx conf nginx.conf c引數指定了要載入的nginx配置檔案路徑 停止操作 停止操作是通過向nginx程序傳送訊號來進行的 步驟1 查詢nginx主程序號?ps ef grepnginx 在程序列表裡 面找master程序,它的編號就是主程序...