本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
卸载 Amazon Systems Manager 代理
如果您不想再使用 Amazon Systems Manager 管理 Greengrass 核心设备,则可以从 Systems Manager 中取消注册核心设备并从该设备卸载 Amazon Systems Manager Agent(Systems Manager Agent)。
您可随时重新注册核心设备。为此,请再次部署 Systems Manager Agent 组件,该组件会在安装核心设备时将其注册至 Systems Manager。Systems Manager 会存储已取消注册的核心设备的命令历史记录 30 天。
步骤 1:从 Systems Manager 中取消注册核心设备
您可以使用 Systems Manager 控制台或 API 取消注册核心设备。有关更多信息,请参阅《Amazon Systems Manager 用户指南》中的已取消注册的托管节点。
步骤 2:卸载 Systems Manager Agent 组件
取消注册核心设备后,从设备上卸载 Systems Manager Agent 组件。要从 Greengrass 核心设备中移除组件,请修改安装该组件的部署,然后从部署中移除该组件。若核心设备的部署均未指定该组件,Amazon IoT Greengrass Core 软件会卸载该组件。有关更多信息,请参阅 将 Amazon IoT Greengrass 组件部署至设备。
-
在 Amazon IoT Greengrass 控制台
导航菜单中,选择核心设备。 -
选择要卸载 Systems Manager Agent 组件的核心设备。
-
在核心设备详细信息页面上,选择部署选项卡。
-
选择将 Systems Manager Agent 组件部署至核心设备的部署。
-
在部署详细信息页面上,选择修改。
-
在修订部署模式中,选择修订部署。
-
在步骤 1:指定目标中,选择下一步。
-
在步骤 2:选择组件中,取消选中 aws.greengrass.SystemsManagerAgent 组件,然后选择下一步。
-
在步骤 3:配置组件中,选择下一步。
-
在步骤 4:配置高级设置中,选择下一步。
-
在步骤 5:查看中,选择部署。
要卸载 Systems Manager Agent 组件,请修改部署该组件的部署,然后将其从部署中移除。有关更多信息,请参阅 修改部署。
完成部署可能需要数分钟。您可以使用 Amazon IoT Greengrass 服务来检查部署的状态。有关更多信息,请参阅 检查部署状态。
步骤 3:卸载 Systems Manager Agent 软件
移除 Systems Manager Agent 组件后,Systems Manager Agent 软件将继续在核心设备上运行。要移除 Systems Manager Agent 软件,可以在核心设备上运行命令。有关更多信息,请参阅《Amazon Systems Manager 用户指南》中的从 Linux 实例上卸载 Systems Manager Agent。