Files

42 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: devops.linux.index
title: Linux 运维基础
type: index
domain: devops
stack: [linux]
tags: [Linux, 命令行, 运维, 线上排查]
week: [14]
---
# Linux 运维基础
后端岗位默认你能独立登录服务器:看日志、查进程和端口、处理磁盘满、配置 systemd 服务、排查“接口变慢 / 服务挂了”。这个专题只讲开发者最常用的部分,不追求系统管理员的深度。
## 学习路线
| 顺序 | 课程 | 级别 | 预计 |
| --- | --- | --- | --- |
| 1 | [常用命令:文件、文本处理、进程、端口、权限、systemd](01-commands.md) | 基础 | 3 小时 |
| 2 | [线上排查:CPU、内存、磁盘、网络、日志的定位思路](02-troubleshooting.md) | 进阶 | 3 小时 |
## 企业场景
- [线上故障排查:接口变慢、磁盘写满、进程被 OOM 杀掉](scenarios/incident-troubleshooting.md)
## 面试题
- [Linux 面试题](interview.md)
## 示例代码
- [examples/log-analysis](examples/log-analysis/):`analyze.py` 分析 Nginx 访问日志(状态码、高频 IP、慢接口、5xx);`diag.sh` 一键采集系统快照(只读命令)
## 在 16 周计划中
- [第 14 周:后端扩展与部署](../../../plan/week14-backend-extend-deploy.md)
## 官方资料
- systemd 服务单元:https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html
- 各命令的手册:`man 命令名`,或 https://man7.org/linux/man-pages/