sudo update-rc.d -f myservice remove
sudo update-rc.d -f myservice default
再将/etc/default/apache2.conf内的语句全都注销。
start on (filesystem
and net-device-up IFACE!=lo)
stop on runlevel [!2345]
注销掉
#start on (filesystem
# and net-device-up IFACE!=lo)
#stop on runlevel [!2345]