停用服務

Ubuntu
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

停用服務

文章 yehlu »

https://askubuntu.com/questions/698993/ ... -in-ubuntu



If you are not using systemd (Ubuntu 14.10 and earlier), then the short answer is:

代碼: 選擇全部

update-rc.d -f <service> remove
The following command will give you a list of all services on your machine:

service --status-all
You should be able to find the names of the services you want to disable in there.

For more details, see enabling-and-disabling-services and for the very long answer see this post (as already mentioned by @muru).

For Ubuntu versions that use systemd (15.04 and later) use:

代碼: 選擇全部

systemctl disable <service>
For more details, see this post on Digital Ocean and the man page for systemctl.
回覆文章

回到「Ubuntu」