更新时间:2022-11-02 GMT+08:00
分享

Ubuntu 16.04/Ubuntu 18.04

  1. 执行下列命令:

    systemctl status cloud-init

    systemctl status cloud-init-local

    systemctl status cloud-config

    systemctl status cloud-final

    如下图,若红框部分是“enable”状态,则表示服务已被自启动。

  2. 如果Cloud-Init四个阶段的服务未被自启动,在命令行执行:

    systemctl enable cloud-init

    systemctl enable cloud-init-local

    systemctl enable cloud-config

    systemctl enable cloud-final

  3. 执行以下命令,运行Cloud-Init服务命令。

    systemctl start cloud-init-local

    systemctl start cloud-init

    systemctl start cloud-config

    systemctl start cloud-final

  4. 执行步骤1中命令,查看Cloud-Init状态是否为active,如图。

分享:

    相关文档

    相关产品