设置开机自启动项:

update-rc.d -f apache2 defaults

开机默认打开Apache2

kalilinux设置开机自启动:update-rc.d -f apache2 defaults_开机自启动