• 2026 年 4 月 30 日之後, AWS Systems Manager CloudWatch Dashboard 將不再可用。客戶可以繼續使用 Amazon CloudWatch 主控台來檢視、建立和管理其 Amazon CloudWatch 儀表板,就像現在一樣。如需詳細資訊,請參閱 Amazon CloudWatch Dashboard 文件。
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
檢查 SSM Agent 狀態並啟動代理程式
本主題列出 命令,以檢查 AWS Systems Manager 代理程式 (SSM Agent) 是否在每個支援的作業系統上執行。它也會提供用於啟動代理程式 (如果代理程式未執行) 的命令。
| 作業系統 | 用於檢查 SSM Agent 狀態的命令 | 用於啟動 SSM Agent 的命令 |
|---|---|---|
| Amazon Linux 2 和 Amazon Linux 2023 |
|
|
| Debian Server11 和 12 |
|
|
| macOS | 檢查位於 /var/log/amazon/ssm/amazon-ssm-agent.log 的代理程式日誌檔案 |
|
| Oracle Linux |
|
|
| Red Hat Enterprise Linux (RHEL) 7.x、8.x、9.x 以及 10.x |
|
|
| SUSE Linux Enterprise Server (SLES) |
|
|
| Ubuntu Server 16.04 (32 位元) |
|
|
| Ubuntu Server 16.04 64 位元執行個體 (deb 套件安裝) |
|
|
| Ubuntu Server 16.04 LTS、18.04、20.04、22.04 LTS、23.10、24.04 LTS、24.0 以及 25.04 |
|
|
| Windows Server |
在 PowerShell 中執行:
|
在 PowerShell 管理員模式下執行:
|