CentOS Minimal 故障排查实战指南
一 快速定位与信息收集
二 常见故障与处理清单
三 无法进入系统时的恢复路径
四 网络问题系统化排查流程
五 高频命令与配置文件速查表
| 目标 | 命令/文件 |
|---|---|
| 系统日志 | journalctl -xe;/var/log/messages;/var/log/secure |
| 内核与硬件 | dmesg;**lspci |
| 资源监控 | uptime;top/htop;free -m;df -h |
| 网络接口与地址 | ip a;ip link;nmcli d(查看网卡名) |
| 网卡配置 | /etc/sysconfig/network-scripts/ifcfg- |
| 网络连通 | ping;traceroute;curl -I https://域名 |
| 端口与监听 | ss -tulpen 或 netstat -tulpen |
| DNS 解析 | nslookup 或 dig;/etc/resolv.conf |
| 防火墙 | firewall-cmd --list-all;firewall-cmd --add-port=22/tcp --permanent && firewall-cmd --reload |
| 服务管理 | systemctl status/restart |
| SELinux | sestatus;setenforce 0(测试);/etc/selinux/config |
| 包管理 | yum install -y net-tools;yum update |
| 引导修复 | grub2-mkconfig -o /boot/grub2/grub.cfg |
| 抓包分析 | tcpdump -i |