Debugging Workflow#
Start broad, narrow down. Most problems fall into five categories: service not running, resource exhaustion, full disk, network failure, or kernel issue. Work through them in order: service, resources, network, kernel logs.
Services: systemctl and journalctl#
When a service is misbehaving, start with its status:
systemctl status nginxThis shows whether the service is active, its PID, its last few log lines, and how long it has been running. If the service keeps restarting, the uptime will be suspiciously short.