更新时间:2022-11-03 GMT+08:00
EulerOS/OpenEuler
- 执行以下命令,检查Cloud-Init开机自启动服务是否设置成功。
systemctl status cloud-init-local
systemctl status cloud-init
systemctl status cloud-config
systemctl status cloud-final
- 下图所示回显信息“enabled”,说明开机自启动服务已经设置成功。
如果没有设置开机自启动,则执行以下命令开启对应阶段的开机自启动服务:
systemctl enable cloud-init-local
systemctl enable cloud-init
systemctl enable cloud-config
systemctl enable cloud-final
-
systemctl start cloud-init-local
systemctl start cloud-init
systemctl start cloud-config
systemctl start cloud-final
- 执行步骤1中命令,查看Cloud-Init状态是否为active,如图。
父主题: 查看Cloud-Init服务状态