[Ubuntu] enable/disable services on start-up

Ubuntu 使用 update-rc.d 指令設定服務開機自動啟動或停用,以 apache2 為例示範 enable/disable 的用法。

Take apache for example:

Disable - update-rc.d -f apache2 remove

Enable - update-rc.d apache2 defaults

comments powered by Disqus
Powered by Hugo. Theme Stack. All Rights Reserved.