Chapter 1. Best Practices and Initial Investigation
Introduction
Getting Your System(s) Ready for Effective Problem Determination
The Four Phases of Investigation
Technical Investigation
Troubleshooting Commercial Products
Conclusion
1.1. Introduction
Your boss is screaming, your customers are screaming, you’re screaming ... Whatever the situation, there is a problem, and you need to solve it. Remember those old classic MUD games? For those who don’t, a Multi-User Dungeon or MUD was the earliest incarnation of the online video game. Users played the game through a completely non-graphical text interface that described the surroundings and options available to the player and then prompted the user with what to do next.
你的老板在尖叫, 你的顾客在尖叫, 你在尖叫…无论情况如何, 都有一个你需要解决的问题。还记得经典的MUD游戏吗?简单来说,MUD是一个多用户的在线视频游戏。用户通过一个描述了周边的环境和可用选项的文本界面来玩游戏, 文本界面提示用户下一步该做什么。
You are alone in a dark cubicle. To the North is your boss's office, to the West is your Team Lead's cubicle, to the East is a window opening out to a five-floor drop, and to the South is a kitchenette containing a freshly brewed pot of coffee. You stare at your computer screen in bewilderment as the phone rings for the fifth time in as many minutes indicating that your users are unable to connect to their server.
你独自一人在黑暗的隔间里。向北是你的老板的办公室, 向西是你的团队领导的小隔间, 向东是一个5层楼高的窗口, 向南是一个有新煮的咖啡小厨房。你盯着你的电脑屏幕,愁眉不展, 因为电话刚刚响了第五次, 表明你的用户无法连接到他们的服务器。
Command>
What will you do? Will you run toward the East and dive through the open window? Will you go grab a hot cup of coffee to ensure you stay alert for the long night ahead? A common thing to do in these MUD games was to examine your surroundings further, usually done by the look command.
你会怎么做?你会朝东边跑, 然后从打开的窗子里跳下去吗?你会去拿一杯热咖啡来确保你在未来的漫漫长夜保持清醒吗?在这些MUD游戏中, 常见的方法是检查你周围的环境, 这通常由look命令完成。
Command> look
Your cubicle is a mess of papers and old coffee cups. The message waiting light on your phone is burnt out from flashing for so many months. Your email inbox is overflowing with unanswered emails. On top of the mess is the brand new book you ordered entitled "Self-Service Linux." You need a shower.
你的隔间里乱七八糟的放着纸和旧咖啡杯。您的手机上有几个消息几个月都没有看。您的邮件收件箱中充斥着未答复的电子邮件。最糟糕的是你订购的一本崭新的书, 题为 "self Linux"。你需要洗个澡,清醒一下。
Command> read book "Self-Service Linux"
You still need a shower.
你需要清醒一下。
This tongue-in-cheek MUD analogy aside, what can this book really do for you? This book includes chapters that are loaded with useful information to help you diagnose problems quickly and effectively. This first chapter covers best practices for problem determination and points to the more in-depth information found in the chapters throughout this book. The first step is to ensure that your Linux system(s) are configured for effective problem determination.
除开MUD这个类比外,这本书真的可以为你做什么?本书包含有用的信息, 可帮助您快速有效地诊断问题。本书第一章介绍了确定问题的最佳方法, 并指出了本书各章中所发现的更深入的信息。第一步是确保您的 Linux 系统安装了一些工具软件。