日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Linux服務(wù)器的關(guān)機和重啟命令 Linux服務(wù)器關(guān)閉( 二 )


[rootsharplee creatfile]# poweroff
6,關(guān)閉和重啟系統(tǒng)使用systemctl命令
Systemd是一個新的初始化系統(tǒng)和系統(tǒng)管理器,它通過傳統(tǒng)的SysV初始化系統(tǒng)實現(xiàn)/適應(yīng)了所有主要的Linux發(fā)行版 。
systemd 與 SysV 和 LSB 初始化腳本兼容 。它可以作為系統(tǒng)系統(tǒng)的直接替代品 。systemd 是內(nèi)核啟動并保持 PID 1 的第一個進(jìn)程 。
systemctl是命令行實用程序和主要工具,用于管理systemd守護(hù)程序/服務(wù),例如(啟動,重新啟動,停止,啟用,禁用,重新加載和狀態(tài)) 。
systemd 使用 .service files 而不是 bash 腳本(SysVinit 使用) 。systemd 將所有守護(hù)進(jìn)程分類到它們自己的 Linux cgroup 中,您可以通過瀏覽 /cgroup/systemd 文件來系統(tǒng)層次結(jié)構(gòu) 。
[rootsharplee creatfile]# systemctl halt
# systemctl poweroff
# systemctl reboot
# systemctl suspend
# systemctl hibernate
systemctl halt,systemctl poweroff 關(guān)閉系統(tǒng) 。
systemctl reboot重啟系統(tǒng) 。
systemctl suspend 掛起系統(tǒng) 。
systemctl hibernate 關(guān)閉系統(tǒng) 。

推薦閱讀