更新时间:2022-11-03 GMT+08:00
Ubuntu 16.04/Ubuntu 18.04
- 执行下列命令:
systemctl status cloud-init-local
systemctl status cloud-config
systemctl status cloud-final
如下图,若红框部分是“enable”状态,则表示服务已被自启动。
- 如果Cloud-Init四个阶段的服务未被自启动,在命令行执行:
systemctl enable cloud-init-local
systemctl enable cloud-config
systemctl enable cloud-final
- 执行以下命令,运行Cloud-Init服务命令。
systemctl start cloud-init-local
systemctl start cloud-init
systemctl start cloud-config
systemctl start cloud-final
- 执行步骤1中命令,查看Cloud-Init状态是否为active,如图。
父主题: 查看Cloud-Init服务状态