永久启动时自动启动或启用服务ubuntu 16.04 lts


17

如何在下次启动或启动时自动启动或启用服务?在Ubuntu 16.04中,如何在下次启动或启动时启动或启用服务?在Ubuntu 16.04 LTS中

无需每次手动启动或启动ubuntu 16.04 lts即可手动启用或重新启动服务

谢谢

Answers:


33

听起来您正在寻找:

systemctl enable example-service.service

听起来好像您没有永久禁用任何服务,但是如果确实有,则可以执行以下操作:

systemctl unmask example-service.service

以及重新启用能够启动服务的功能。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.