預設的層級是:2
sysv-rc-conf
安裝
apt-get install sysv-rc-conf
設定服務是否啟動
sysv-rc-conf
列出所有運行層級之下的服務
sysv-rc-conf --list
查看某一程序的啟動狀態
sysv-rc-conf --list [服務名稱]
sysv-rc-conf --list postfix
開關某一服務
sudo sysv-rc-conf --level 35 ssh off # 關閉 ssh 3 及 5 的 run leve
sudo sysv-rc-conf atd on # 開啟 atd run level
沒有留言:
張貼留言