On a Debian based system, which command can be used to stop the apache2 init script from running at boot time once the real script has been removed from /etc/init.d/?
A.
update-rc.d -d apache2
B.
update-rc.d apache2 delete
C.
update-rc.d remove apache2
D.
update-rc.d apache2 remove
E.
update-rc.d delete apache2
題解
「update-rc.d」指令可以用來安裝或是移除 SystemV init 系統的指令檔連結。
選項 A,「update-rc.d」指令沒有「-d」參數。
選項 B,應使用「remove」,而不是「delete」。
選項 C,指令檔連結名稱(name)應該要寫在「remove」之前。
選項 D,正確答案。
選項 E,應使用「remove」,而不是「delete」,而且指令檔連結名稱(name)應該要寫在「remove」之前。
