

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 對適用於 Linux 的 Chef 11.10 和舊版故障診斷
<a name="troubleshooting-chef-11-linux"></a>

**重要**  
 AWS OpsWorks Stacks 此服務已於 2024 年 5 月 26 日終止，並已針對新客戶和現有客戶停用。我們強烈建議客戶盡快將其工作負載遷移至其他解決方案。如果您對遷移有任何疑問，請透過 [AWS re：Post](https://repost.aws/) 或透過 [AWS Premium Support](https://aws.amazon.com/support) 聯絡 AWS 支援 團隊。

**注意**  
如需其他故障診斷資訊，請參閱[偵錯和故障診斷指南](troubleshoot.md)。

## 適用於 Linux 之 Chef 11.10 和舊版的 Chef 日誌
<a name="troubleshooting-chef-11-linux-logs"></a>

OpsWorks Stacks 會將每個執行個體的 Chef 日誌存放在其`/var/lib/aws/opsworks/chef`目錄中。您需要 sudo 權限才能存取此目錄。每個回合的日誌位於名為 `YYYY-MM-DD-HH-MM-SS-NN.log` 的檔案中。

如需詳細資訊，請參閱下列內容：
+ [使用主控台檢視 Chef 日誌](troubleshoot-debug-log.md#troubleshoot-debug-log-console)
+ [使用 CLI 或 API 檢視 Chef 日誌](troubleshoot-debug-log.md#troubleshoot-debug-log-cli)
+ [解讀 Chef 日誌](troubleshoot-debug-log.md#troubleshoot-debug-log-interpret)
+ [常見的 Chef 日誌錯誤](troubleshoot-debug-log.md#troubleshoot-debug-log-errors)