本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
此頁面說明如何解除安裝 Linux 和 Microsoft Windows 上的 Discovery Agent。
在 Linux 上解除安裝 Discovery Agent
本節說明如何解除安裝 Linux 上的 Discovery Agent。
如果您使用的是 yum 套件管理員,請解除安裝 代理程式
-
如果使用 yum,請使用下列命令解除安裝代理程式。
rpm -e --nodeps aws-discovery-agent
如果您使用的是 apt-get 套件管理員,請解除安裝 代理程式
-
如果使用 apt-get,請使用下列命令解除安裝代理程式。
apt-get remove aws-discovery-agent:i386
如果您使用的是 zypper 套件管理員,請解除安裝代理程式
-
如果使用 zypper,請使用下列命令解除安裝代理程式。
zypper remove aws-discovery-agent
在 Microsoft Windows 上解除安裝 Discovery Agent
本節說明如何解除安裝 Microsoft Windows 上的 Discovery Agent。
若要解除安裝 Windows 上的探索代理程式
-
在 Windows 中開啟控制面板。
-
選擇程式集。
-
選擇程式和功能。
-
選取AWS 探索代理程式。
-
選擇解除安裝。
注意
如果您選擇在解除安裝代理程式之後重新安裝代理程式,請使用
/repair
和/norestart
選項執行下列命令。.\AWSDiscoveryAgentInstaller.exe REGION="
your-home-region
" KEY_ID="aws-access-key-id
" KEY_SECRET="aws-secret-access-key
" /quiet /repair /norestart
使用命令列在 Windows 上解除安裝探索代理程式
-
按滑鼠右鍵啟動。
-
選擇命令提示字元。
-
使用以下命令在 Windows 上解除安裝探索代理程式。
wmic product where name='AWS Discovery Agent' call uninstall
注意
如果.exe
檔案存在於伺服器上,您可以使用下列命令,從伺服器完全解除安裝代理程式。如果您使用此命令解除安裝 ,則重新安裝代理程式時不需要使用 /repair
和 /norestart
選項。
.\AWSDiscoveryAgentInstaller.exe /quiet /uninstall