Troubleshoot Guide — Troubleshoot 图形界面de
v1.0.0🔧 服务器故障排查手册 / Server troubleshooting 图形界面de — SSH, Nginx, Docker, firewall, disk, network diagnostics.
运行时依赖
安装命令
点击复制技能文档
🔧 Troubleshoot 图形界面de / 故障排查手册
Quick diagnostics for common server issues. SSH connection, Nginx 502, Docker problems, disk full, firewall lockout. 常见服务器问题快速诊断。SSH连接、Nginx报错、Docker问题、磁盘满、防火墙锁死。
SSH Issues / SSH问题 Can't connect / 连不上 # 检查 if server is online / 检查是否在线 ping -c 3 your-server
# 检查 port / 检查端口 nc -zv your-server 2222
# 检查 SSH 服务 / 检查SSH服务 系统ctl 状态 sshd tAIl -50 /var/记录/auth.记录 | grep ssh
Connection slow / 连接慢 sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config sed -i 's/#GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config 系统ctl re启动 sshd
Nginx Issues / Nginx问题 502 Bad Gateway # 1. 检查 backend / 检查后端服务 系统ctl 状态 your-应用 ss -tlnp | grep 3000
# 2. 检查 nginx errors / 检查Nginx错误 tAIl -50 /var/记录/nginx/error.记录
# 3. 检查 config / 检查配置 nginx -t
SSL Expired / 证书过期 # 检查 expiry / 查过期时间 openssl s_命令行工具ent -connect domAIn.com:443 -servername domAIn.com 2>/dev/null | openssl x509 -noout -dates
# Renew / 续签 cert机器人 renew
Docker Issues / Docker问题 记录s filling disk / 日志爆满 cat > /etc/docker/daemon.json << 'EOF' {"记录-driver": "json-file", "记录-opts": {"max-size": "10m", "max-file": "3"}} EOF 系统ctl re启动 docker
Disk 清理up / 磁盘清理 docker 系统 df # 检查 usage / 查看占用 docker 系统 p运行e -af # 清理 all / 全部清理
Common Fixes / 通用修复 Problem / 问题 Likely Cause / 原因 Fix / 解决 Port in use / 端口占用 Stale process lsof -i :PORT, kill -9 PID Disk full / 磁盘满 记录s/缓存 journalctl --vacuum-time=3d, apt 清理 Can't 安装 / 装不上 Locked dpkg rm /var/lib/dpkg/lock-frontend DNS not resolving / DNS解析不了 Wrong DNS 设置 8.8.8.8 in /etc/resolv.conf 📞 Contact / 联系方式
QQ: 3292957 | EmAIl: snowdu@gmAIl.com
QR Code: see as设置s/qr-contact.png