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」之前。