

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 为 Linux 进行 Chef 11.10 和早期版本的故障排除
<a name="troubleshooting-chef-11-linux"></a>

**重要**  
该 AWS OpsWorks Stacks 服务于 2024 年 5 月 26 日终止，新客户和现有客户均已禁用。我们强烈建议客户尽快将其工作负载迁移到其他解决方案。如果您对迁移有疑问，请通过 re [AWS : Post 或通过 Pre](https://repost.aws/) mium Su [AWS pp](https://aws.amazon.com/support) ort 与 AWS 支持 团队联系。

**注意**  
有关其他故障排除信息，请参阅 [调试和故障排除指南](troubleshoot.md)。

## 适用于 Linux 的 Chef 11.10 和早期版本的 Chef 日志
<a name="troubleshooting-chef-11-linux-logs"></a>

OpsWorks 堆栈将每个实例的 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)