linux-troubleshooting
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinux Troubleshooting Workflow
Linux故障排查工作流
Overview
概述
Specialized workflow for diagnosing and resolving Linux system issues including performance problems, service failures, network issues, and resource constraints.
专门用于诊断和解决Linux系统问题的工作流,包括性能故障、服务失效、网络问题以及资源限制。
When to Use This Workflow
何时使用此工作流
Use this workflow when:
- Diagnosing system performance issues
- Troubleshooting service failures
- Investigating network problems
- Resolving disk space issues
- Debugging application errors
在以下场景使用此工作流:
- 诊断系统性能问题
- 排查服务失效问题
- 调查网络故障
- 解决磁盘空间问题
- 调试应用程序错误
Workflow Phases
工作流阶段
Phase 1: Initial Assessment
阶段1:初步评估
Skills to Invoke
调用技能
- - Linux commands
bash-linux - - Troubleshooting
devops-troubleshooter
- - Linux命令
bash-linux - - 故障排查
devops-troubleshooter
Actions
操作
- Check system uptime
- Review recent changes
- Identify symptoms
- Gather error messages
- Document findings
- 检查系统运行时间
- 查看近期变更
- 识别症状
- 收集错误信息
- 记录发现
Commands
命令
bash
uptime
hostnamectl
cat /etc/os-release
dmesg | tail -50bash
uptime
hostnamectl
cat /etc/os-release
dmesg | tail -50Copy-Paste Prompts
可复制粘贴的提示词
Use @bash-linux to gather system informationUse @bash-linux to gather system informationPhase 2: Resource Analysis
阶段2:资源分析
Skills to Invoke
调用技能
- - Resource commands
bash-linux - - Performance analysis
performance-engineer
- - 资源相关命令
bash-linux - - 性能分析
performance-engineer
Actions
操作
- Check CPU usage
- Analyze memory
- Review disk space
- Monitor I/O
- Check network
- 检查CPU使用率
- 分析内存情况
- 查看磁盘空间
- 监控I/O
- 检查网络
Commands
命令
bash
top -bn1 | head -20
free -h
df -h
iostat -x 1 5bash
top -bn1 | head -20
free -h
df -h
iostat -x 1 5Copy-Paste Prompts
可复制粘贴的提示词
Use @performance-engineer to analyze system resourcesUse @performance-engineer to analyze system resourcesPhase 3: Process Investigation
阶段3:进程调查
Skills to Invoke
调用技能
- - Process commands
bash-linux - - Process management
server-management
- - 进程相关命令
bash-linux - - 进程管理
server-management
Actions
操作
- List running processes
- Identify resource hogs
- Check process status
- Review process trees
- Analyze strace output
- 列出运行中的进程
- 识别资源占用大户
- 检查进程状态
- 查看进程树
- 分析strace输出
Commands
命令
bash
ps aux --sort=-%cpu | head -10
pstree -p
lsof -p PID
strace -p PIDbash
ps aux --sort=-%cpu | head -10
pstree -p
lsof -p PID
strace -p PIDCopy-Paste Prompts
可复制粘贴的提示词
Use @server-management to investigate processesUse @server-management to investigate processesPhase 4: Log Analysis
阶段4:日志分析
Skills to Invoke
调用技能
- - Log commands
bash-linux - - Error detection
error-detective
- - 日志相关命令
bash-linux - - 错误检测
error-detective
Actions
操作
- Check system logs
- Review application logs
- Search for errors
- Analyze log patterns
- Correlate events
- 检查系统日志
- 查看应用程序日志
- 搜索错误信息
- 分析日志模式
- 关联事件
Commands
命令
bash
journalctl -xe
tail -f /var/log/syslog
grep -i error /var/log/*bash
journalctl -xe
tail -f /var/log/syslog
grep -i error /var/log/*Copy-Paste Prompts
可复制粘贴的提示词
Use @error-detective to analyze log filesUse @error-detective to analyze log filesPhase 5: Network Diagnostics
阶段5:网络诊断
Skills to Invoke
调用技能
- - Network commands
bash-linux - - Network troubleshooting
network-engineer
- - 网络相关命令
bash-linux - - 网络故障排查
network-engineer
Actions
操作
- Check network interfaces
- Test connectivity
- Analyze connections
- Review firewall rules
- Check DNS resolution
- 检查网络接口
- 测试连通性
- 分析连接情况
- 查看防火墙规则
- 检查DNS解析
Commands
命令
bash
ip addr show
ss -tulpn
curl -v http://target
dig domainbash
ip addr show
ss -tulpn
curl -v http://target
dig domainCopy-Paste Prompts
可复制粘贴的提示词
Use @network-engineer to diagnose network issuesUse @network-engineer to diagnose network issuesPhase 6: Service Troubleshooting
阶段6:服务故障排查
Skills to Invoke
调用技能
- - Service management
server-management - - Debugging
systematic-debugging
- - 服务管理
server-management - - 调试
systematic-debugging
Actions
操作
- Check service status
- Review service logs
- Test service restart
- Verify dependencies
- Check configuration
- 检查服务状态
- 查看服务日志
- 测试服务重启
- 验证依赖关系
- 检查配置
Commands
命令
bash
systemctl status service
journalctl -u service -f
systemctl restart servicebash
systemctl status service
journalctl -u service -f
systemctl restart serviceCopy-Paste Prompts
可复制粘贴的提示词
Use @systematic-debugging to troubleshoot service issuesUse @systematic-debugging to troubleshoot service issuesPhase 7: Resolution
阶段7:问题解决
Skills to Invoke
调用技能
- - Incident response
incident-responder - - Fix implementation
bash-pro
- - 事件响应
incident-responder - - 修复实施
bash-pro
Actions
操作
- Implement fix
- Verify resolution
- Monitor stability
- Document solution
- Create prevention plan
- 实施修复方案
- 验证问题解决
- 监控稳定性
- 记录解决方案
- 制定预防计划
Copy-Paste Prompts
可复制粘贴的提示词
Use @incident-responder to implement resolutionUse @incident-responder to implement resolutionTroubleshooting Checklist
故障排查检查清单
- System information gathered
- Resources analyzed
- Logs reviewed
- Network tested
- Services verified
- Issue resolved
- Documentation created
- 已收集系统信息
- 已分析资源情况
- 已查看日志
- 已测试网络
- 已验证服务
- 问题已解决
- 已创建文档
Quality Gates
质量关卡
- Root cause identified
- Fix verified
- Monitoring in place
- Documentation complete
- 已确定根本原因
- 修复方案已验证
- 已部署监控
- 文档已完成
Related Workflow Bundles
相关工作流包
- - OS scripting
os-scripting - - Bash scripting
bash-scripting - - DevOps
cloud-devops
- - 操作系统脚本
os-scripting - - Bash脚本
bash-scripting - - DevOps
cloud-devops