Back to blog

How to Troubleshoot a Linux Server in Production

November 15, 2024 Dedimarco
linux server troubleshooting sysadmin

After more than 15 years of experience in Linux server administration, here is my diagnostic methodology when a server shows signs of weakness.

1. Check System Load

The first step is always to check the system load:

htop
# or
uptime
free -h
df -h

These commands give you a quick overview: CPU, RAM, and disk space.

2. Analyze Logs

Logs are your best allies:

journalctl -xe --since "1 hour ago"
tail -f /var/log/syslog

3. Check Services

systemctl list-units --failed
systemctl status nginx

Conclusion

A methodical approach is essential. Always start with the basics before diving into complex diagnostics.