Files
llm_wiki/wiki/群晖NAS.md
T
hehaiguang1123 a6f05ab2d5 Phase 0-2: Schema cleanup, typed relations, event-driven automation
- Phase 0: AGENTS.md cleanup (dedup quotes, renumber sections, merge qmd)
- Phase 1: typed relations (manage-relations.py, graph-search.py, check-staleness.py, detect-conflicts.py)
- Phase 2: frontmatter validator, weekly lint, knowledge promotion, git hooks
- Fix .gitignore to track tools/ and .githooks/
- Fix git remote URL (remove plaintext token)
- New wiki pages: 504 pages, 34 raw sources
2026-07-01 08:05:43 +08:00

99 lines
2.4 KiB
Markdown
Raw 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.
---
categories:
- "[[LLM Wiki]]"
tags:
- wiki
- tool
- nas
- hardware
created: 2026-04-08
source: "[[Gitea个人Git服务部署指南]]"
type: tool
aliases:
- Synology
- NAS服务器
- 网络存储
---
# 群晖 NAS (Synology NAS)
> **一句话定义**:Synology 推出的网络附加存储(NAS)设备,提供文件存储、备份、容器部署等多种功能。
## 基本信息
| 属性 | 值 |
|------|-----|
| 品牌 | Synology |
| 型号示例 | DS418play, DS920+, DS220+ |
| 操作系统 | DSM (DiskStation Manager) |
| 官网 | https://www.synology.com |
## 在 Gitea 部署中的角色
群晖 NAS 是自托管 Git 服务(如 Gitea)的理想硬件平台:
### 部署架构
```
群晖 NAS (DSM 7.x)
├── Docker (容器平台)
│ ├── Gitea (Git 服务)
│ └── FRP 客户端 (内网穿透)
├── 存储空间 (-volume3/gitea-share)
└── 网络配置 (端口映射)
```
### 部署步骤
1. **启用 Docker**:在 DSM 中安装 Docker 套件
2. **创建网络**:创建 Docker 网络(如 `172.17.0.0/16`
3. **部署 Gitea**:通过 Docker Compose 或手动创建容器
4. **配置 FRP**:部署 frpc 客户端进行内网穿透
详见 [[Gitea-部署指南]]
## 常见型号
| 型号 | CPU | 盘位 | 适合场景 |
|------|-----|------|---------|
| DS220+ | Intel Celeron | 2 盘 | 个人/小型团队 |
| DS420+ | Intel Celeron | 4 盘 | 小型团队 |
| DS920+ | Intel Celeron | 4 盘 | 中型团队 |
| DS1621+ | AMD V1500B | 6 盘 | 高性能需求 |
## Docker 部署要点
### 端口映射
| 服务 | 内部端口 | 外部端口 (FRP) |
|------|---------|---------------|
| Gitea Web | 8418 | 13000 |
| Gitea SSH | 10022 | 10022 |
### 存储路径
| 路径 | 用途 |
|------|------|
| `/var/packages/gitea/var` | Gitea 配置和数据 |
| `/volume3/gitea-share` | Git 仓库存储 |
## 与其他方案的对比
| 方案 | 优点 | 缺点 |
|------|------|------|
| **群晖 NAS** | 界面友好、功能丰富 | 成本较高 |
| **VPS** | 无需硬件 | 资源有限 |
| **树莓派** | 便宜、灵活 | 性能较弱 |
| **二手服务器** | 性价比高 | 需要维护 |
详见 [[Gitea-部署指南]]
## 相关页面
- [[Gitea-部署指南]] — 完整的群晖 NAS + FRP 部署流程
- [[FRP]] — 内网穿透工具
- [[内网穿透]] — 内网穿透技术概念
## 来源
- [[Gitea个人Git服务部署指南]] — 完整部署指南