From 0dc7e71539ee6ffa6199c1462b9302bd300058a8 Mon Sep 17 00:00:00 2001 From: weishen Date: Thu, 16 Apr 2026 21:08:55 +0800 Subject: [PATCH] Auto-sync: 2026-04-16 21:08 --- openclaw/Agents/Agent-TOOLS-章节权限矩阵.md | 5 +- openclaw/Agents/TOOLS标准模板.md | 89 ++++++++++++++++++- ...AI for free directly from top companies.md | 0 {Clippings => raw/Skills}/Obsidian CLI.md | 0 .../Obsidian 官方 CLI 命令全景速查表.md | 0 .../Skills}/Obsidian 必装 Skills.md | 0 ...做了个 Skill:让 AI 帮你生成 Logo 和图标.md | 0 wiki/concepts/3X-UI.md | 18 ++++ wiki/concepts/Bootable-USB.md | 19 ++++ wiki/concepts/Ollama.md | 21 +++++ wiki/concepts/Playwright.md | 20 +++++ wiki/concepts/Reality.md | 18 ++++ wiki/concepts/SSH.md | 34 +++++++ wiki/concepts/Scrapy.md | 20 +++++ wiki/concepts/Socket-Activation.md | 46 ++++++++++ wiki/concepts/VLESS.md | 21 +++++ wiki/concepts/Xray.md | 18 ++++ wiki/entities/Bandwagon.md | 22 +++++ wiki/entities/FastAPI.md | 18 ++++ wiki/entities/MinIO.md | 18 ++++ wiki/entities/OpenSSH.md | 27 ++++++ wiki/entities/PostgreSQL.md | 19 ++++ wiki/entities/Rufus.md | 23 +++++ wiki/entities/UFW.md | 32 +++++++ wiki/entities/Ubuntu.md | 5 +- wiki/entities/VPS2.md | 18 ++++ wiki/entities/n8n.md | 20 +++++ wiki/entities/systemd.md | 32 +++++++ wiki/entities/v2rayN.md | 20 +++++ wiki/entities/v2rayNG.md | 20 +++++ wiki/index.md | 26 ++++++ wiki/log.md | 38 ++++++++ wiki/overview.md | 2 + wiki/sources/3x-ui-xray-on-bandwagonvps.md | 47 ++++++++++ ...merce-data-collection-processing-system.md | 48 ++++++++++ ...onezilla-ubuntu-server-full-disk-backup.md | 42 +++++++++ wiki/sources/ubuntu-24.04-enable-ssh.md | 43 +++++++++ 37 files changed, 846 insertions(+), 3 deletions(-) rename {Clippings => raw/AI}/Learn AI for free directly from top companies.md (100%) rename {Clippings => raw/Skills}/Obsidian CLI.md (100%) rename {Clippings => raw/Skills}/Obsidian 官方 CLI 命令全景速查表.md (100%) rename {Clippings => raw/Skills}/Obsidian 必装 Skills.md (100%) rename {Clippings => raw/Skills}/我做了个 Skill:让 AI 帮你生成 Logo 和图标.md (100%) create mode 100644 wiki/concepts/3X-UI.md create mode 100644 wiki/concepts/Bootable-USB.md create mode 100644 wiki/concepts/Ollama.md create mode 100644 wiki/concepts/Playwright.md create mode 100644 wiki/concepts/Reality.md create mode 100644 wiki/concepts/SSH.md create mode 100644 wiki/concepts/Scrapy.md create mode 100644 wiki/concepts/Socket-Activation.md create mode 100644 wiki/concepts/VLESS.md create mode 100644 wiki/concepts/Xray.md create mode 100644 wiki/entities/Bandwagon.md create mode 100644 wiki/entities/FastAPI.md create mode 100644 wiki/entities/MinIO.md create mode 100644 wiki/entities/OpenSSH.md create mode 100644 wiki/entities/PostgreSQL.md create mode 100644 wiki/entities/Rufus.md create mode 100644 wiki/entities/UFW.md create mode 100644 wiki/entities/VPS2.md create mode 100644 wiki/entities/n8n.md create mode 100644 wiki/entities/systemd.md create mode 100644 wiki/entities/v2rayN.md create mode 100644 wiki/entities/v2rayNG.md create mode 100644 wiki/sources/3x-ui-xray-on-bandwagonvps.md create mode 100644 wiki/sources/ai-enhanced-ecommerce-data-collection-processing-system.md create mode 100644 wiki/sources/clonezilla-ubuntu-server-full-disk-backup.md create mode 100644 wiki/sources/ubuntu-24.04-enable-ssh.md diff --git a/openclaw/Agents/Agent-TOOLS-章节权限矩阵.md b/openclaw/Agents/Agent-TOOLS-章节权限矩阵.md index 6b806e2e..d7a1bcdf 100644 --- a/openclaw/Agents/Agent-TOOLS-章节权限矩阵.md +++ b/openclaw/Agents/Agent-TOOLS-章节权限矩阵.md @@ -10,7 +10,8 @@ tags: [] # Agent TOOLS 章节权限矩阵 -> 更新时间:2026-04-15 +> 更新时间:2026-04-16 +> 2026-04-16: 新增第24章 OpenClaw Cron Job 创建规范,第25章 Obsidian CLI > 2026-04-15: 新增第23章 yt-dlp,分配给全部 Agent > 2026-04-13: 新增第22章 Claude Code,分配给全部7个Agent > 2026-04-13: 星枢(xingshu)工作目录变更为 workspace-agent-xingshu,agentId 从 main 改为 xingshu @@ -46,6 +47,8 @@ tags: [] | 21 | Hermes Agent | | | ✅ | | | ✅ | ✅ | | | 22 | Claude Code 调用方法 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | 23 | yt-dlp (网络视频下载) | ✅ | ✅ | ✅ | ✅ | | | | | +| 24 | OpenClaw Cron Job 创建规范 | ✅ | | | | | | | | +| 25 | Obsidian CLI (官方) | ✅ | | | | | | | | | --- diff --git a/openclaw/Agents/TOOLS标准模板.md b/openclaw/Agents/TOOLS标准模板.md index a4a46d0b..0a4a46f6 100644 --- a/openclaw/Agents/TOOLS标准模板.md +++ b/openclaw/Agents/TOOLS标准模板.md @@ -1057,4 +1057,91 @@ openclaw cron add \ ### ⚠️ 关键规则 - `--announce --channel telegram` 必须同时指定 `--to "5038825565"` - 不带 `--to` 时 Telegram 投递会静默失败(无报错),导致 cron 看起来正常但用户收不到通知 -- 禁止使用 launchd / crontab / systemd 管理定时任务,必须用 OpenClaw cron \ No newline at end of file +- 禁止使用 launchd / crontab / systemd 管理定时任务,必须用 OpenClaw cron +## 25. Obsidian CLI (官方) (2026-04-16) + +### 概述 +官方 Obsidian CLI,集成在 Obsidian 应用中,支持读取、搜索、创建、修改笔记等操作。**需要 Obsidian 应用在运行状态**。 + +### 安装信息 +- **路径**: `/Applications/Obsidian.app/Contents/MacOS/obsidian-cli` +- **版本**: `1.12.7` +- **命令**: `obsidian`(已软链到 `/opt/homebrew/bin/obsidian`) + +### 前置要求 +- Obsidian 应用必须**已在运行** +- 默认 Vault: `/Users/weishen/Workspace/nexus` + +### 核心命令 + +#### 读取笔记 +```bash +obsidian read file="笔记名称" # 按名称(无需扩展名) +obsidian read path="folder/note.md" # 按路径 +``` + +#### 搜索 +```bash +obsidian search query="关键词" limit=10 # 搜索笔记名称 +obsidian search-content "内容" # 搜索笔记内容 +``` + +#### 创建笔记 +```bash +obsidian create name="Folder/新笔记" content="# 标题\n内容" silent +# silent: 不在 Obsidian 中打开 +``` + +#### 追加内容 +```bash +obsidian append file="笔记名称" content="新段落内容" +obsidian append file="笔记名称" content="- [ ] 新任务" inline # 不换行 +``` + +#### 查看/修改属性 (Frontmatter) +```bash +obsidian frontmatter file="笔记名称" # 查看 +obsidian property:set name="status" value="done" file="笔记名称" # 设置属性 +``` + +#### 移动/重命名 +```bash +obsidian move "旧路径/笔记.md" "新路径/笔记.md" # 自动更新所有链接 +``` + +#### 每日日记 +```bash +obsidian daily:read # 读取今日日记 +obsidian daily:append content="- [ ] 新任务" # 追加任务 +``` + +#### 任务管理 +```bash +obsidian tasks daily todo # 查看今日任务 +obsidian tags sort=count # 按数量排序显示标签 +``` + +#### 查看 backlinks +```bash +obsidian backlinks file="笔记名称" # 查看谁链接到了这个笔记 +``` + +### 参数格式说明 +- **参数**: `key=value`,如 `file="My Note"` +- **标志**: 布尔开关,无值,如 `silent`、`inline`、`total` +- **路径**: `file=` 按名称解析(像 wikilink),`path=` 精确路径 + +### Vault 指定 +```bash +obsidian vault="另一个Vault" search query="关键词" +``` + +### 完整帮助 +```bash +obsidian help +``` + +### ⚠️ 注意事项 +- Obsidian 应用必须运行才能使用 CLI +- 如果 Obsidian 未运行,会报错或无响应 +- 内容中换行用 `\n`,制表符用 `\t` diff --git a/Clippings/Learn AI for free directly from top companies.md b/raw/AI/Learn AI for free directly from top companies.md similarity index 100% rename from Clippings/Learn AI for free directly from top companies.md rename to raw/AI/Learn AI for free directly from top companies.md diff --git a/Clippings/Obsidian CLI.md b/raw/Skills/Obsidian CLI.md similarity index 100% rename from Clippings/Obsidian CLI.md rename to raw/Skills/Obsidian CLI.md diff --git a/Clippings/Obsidian 官方 CLI 命令全景速查表.md b/raw/Skills/Obsidian 官方 CLI 命令全景速查表.md similarity index 100% rename from Clippings/Obsidian 官方 CLI 命令全景速查表.md rename to raw/Skills/Obsidian 官方 CLI 命令全景速查表.md diff --git a/Clippings/Obsidian 必装 Skills.md b/raw/Skills/Obsidian 必装 Skills.md similarity index 100% rename from Clippings/Obsidian 必装 Skills.md rename to raw/Skills/Obsidian 必装 Skills.md diff --git a/Clippings/我做了个 Skill:让 AI 帮你生成 Logo 和图标.md b/raw/Skills/我做了个 Skill:让 AI 帮你生成 Logo 和图标.md similarity index 100% rename from Clippings/我做了个 Skill:让 AI 帮你生成 Logo 和图标.md rename to raw/Skills/我做了个 Skill:让 AI 帮你生成 Logo 和图标.md diff --git a/wiki/concepts/3X-UI.md b/wiki/concepts/3X-UI.md new file mode 100644 index 00000000..bd1a8640 --- /dev/null +++ b/wiki/concepts/3X-UI.md @@ -0,0 +1,18 @@ +--- +id: 3x-ui +title: 3X-UI +type: concept +tags: [proxy, panel, xray] +sources: [] +last_updated: 2026-04-16 +--- + +## Summary +- 定义:Xray 可视化管理面板,提供 Web 界面管理 Xray 代理服务 +- 作用:简化 Xray 配置和运维,支持一键安装、流量统计、节点管理 + +## Key Facts +- 基于 GitHub 项目 mhsanaei/3x-ui +- 支持命令行和 Web 界面管理 +- 支持 SSL 证书自动申请 +- 支持防火墙管理、BBR 加速等功能 diff --git a/wiki/concepts/Bootable-USB.md b/wiki/concepts/Bootable-USB.md new file mode 100644 index 00000000..bce7970f --- /dev/null +++ b/wiki/concepts/Bootable-USB.md @@ -0,0 +1,19 @@ +--- +title: "Bootable USB" +type: concept +tags: [usb, boot, recovery, storage] +date: 2026-04-16 +--- + +## Definition +可启动 USB(Bootable USB)是一种将操作系统或恢复工具(如 Clonezilla)写入 U 盘,使其可从 BIOS/UEFI 启动的存储介质。用于系统安装、修复或备份恢复场景。 + +## Related Concepts +- [[Clonezilla]]:通过 Bootable USB 提供磁盘镜像备份功能 +- [[Rufus]]:制作 Bootable USB 的工具 +- [[灾难恢复]]:Bootable USB 在灾难恢复流程中的作用 + +## Use Cases +- 系统重装:从 USB 启动安装操作系统 +- 磁盘备份:使用 Clonezilla Live USB 进行全盘镜像备份 +- 系统修复:使用 Windows PE 或 Linux rescue USB 修复系统故障 \ No newline at end of file diff --git a/wiki/concepts/Ollama.md b/wiki/concepts/Ollama.md new file mode 100644 index 00000000..d2d5df87 --- /dev/null +++ b/wiki/concepts/Ollama.md @@ -0,0 +1,21 @@ +--- +title: "Ollama" +type: concept +tags: [AI, 本地模型, Ollama] +date: 2025-11-11 +--- + +## Definition +Ollama 是一个本地大语言模型运行环境,支持在本地运行 Llama、Mistral 等开源模型,无需外部 API。 + +## Key Features +- 本地运行、保护隐私 +- 支持多种开源模型 +- 可通过 HTTP API 调用 + +## Role +在电商数据采集系统中,Ollama 用于本地 AI 处理(摘要、分类、特征提取),替代外部 OpenAI API 实现离线处理。 + +## Connections +- [[n8n]] ← calls [[Ollama]] +- [[Ollama]] ← runs_in [[Docker]] diff --git a/wiki/concepts/Playwright.md b/wiki/concepts/Playwright.md new file mode 100644 index 00000000..623799c3 --- /dev/null +++ b/wiki/concepts/Playwright.md @@ -0,0 +1,20 @@ +--- +title: "Playwright" +type: concept +tags: [自动化, 浏览器, Playwright] +date: 2025-11-11 +--- + +## Definition +Playwright 是 Microsoft 开发的浏览器自动化工具,支持 Chromium、Firefox 和 WebKit,可模拟用户操作和渲染动态页面。 + +## Key Features +- 可模拟浏览器、支持无头模式、可靠性高 +- 支持滚动加载、视频图片加载 + +## Role +在电商数据采集系统中,Playwright 负责加载动态页面、渲染 JavaScript 内容,与 Scrapy 配合实现完整爬取。 + +## Connections +- [[Scrapy]] ← depends_on ← [[Playwright]] +- [[Playwright]] ← runs_in ← [[Docker]] diff --git a/wiki/concepts/Reality.md b/wiki/concepts/Reality.md new file mode 100644 index 00000000..536e3906 --- /dev/null +++ b/wiki/concepts/Reality.md @@ -0,0 +1,18 @@ +--- +id: reality +title: Reality +type: concept +tags: [protocol, proxy, security] +sources: [] +last_updated: 2026-04-16 +--- + +## Summary +- 定义:无 TLS 特征的 TLS 伪装协议,由 V2Ray/Xray 开发 +- 作用:通过_REAL 协议头实现 TLS 指纹混淆,绕过 TLS 检测 + +## Key Facts +- 模拟真实 TLS 流量特征 +- 不需要真实的 TLS 证书 +- 可与 VLESS、VMESS 等协议组合使用 +- 提供更强的抗检测能力 diff --git a/wiki/concepts/SSH.md b/wiki/concepts/SSH.md new file mode 100644 index 00000000..d52a7b51 --- /dev/null +++ b/wiki/concepts/SSH.md @@ -0,0 +1,34 @@ +--- +title: "SSH" +type: concept +tags: [security, networking, remote-access] +date: 2026-04-16 +--- + +## Definition +SSH(Secure Shell,安全外壳)是一种加密网络协议,用于安全地远程登录计算机系统、执行命令和传输文件。 + +## Key Properties +- 默认端口:22 +- 加密传输(RSA、ECDSA、Ed25519 等算法) +- 支持密码认证和公钥认证 +- 支持端口转发、隧道功能 + +## Commands +```bash +ssh user@hostname # 远程登录 +scp file user@host:/path # 安全复制 +sftp user@host # 安全文件传输 +ssh-keygen -t ed25519 # 生成密钥 +``` + +## Security Best Practices +- 禁用密码认证,使用密钥登录 +- 更改默认端口 +- 使用防火墙限制访问来源 +- 启用 Fail2Ban 防止暴力破解 +- 定期更新 SSH 版本 + +## Connections +- [[OpenSSH]] ← implements ← [[SSH]] +- [[UFW]] ← controls_access ← [[SSH]] \ No newline at end of file diff --git a/wiki/concepts/Scrapy.md b/wiki/concepts/Scrapy.md new file mode 100644 index 00000000..e0e8a979 --- /dev/null +++ b/wiki/concepts/Scrapy.md @@ -0,0 +1,20 @@ +--- +title: "Scrapy" +type: concept +tags: [爬虫, Python, Scrapy] +date: 2025-11-11 +--- + +## Definition +Scrapy 是一个用 Python 编写的快速高级网页爬虫框架,用于从网站中提取结构化数据。 + +## Key Features +- 轻量高效、插件生态丰富、可 Docker 化部署 +- 对 JS 渲染页面支持弱,需要配合 Splash 或 Playwright + +## Role +在电商数据采集系统中,Scrapy 负责结构化抓取、分页调度、下载媒体,输出 JSON 或 CSV 文件供 n8n 消费。 + +## Connections +- [[Scrapy]] ← depends_on ← [[Playwright]] +- [[n8n]] ← orchestrates ← [[Scrapy]] diff --git a/wiki/concepts/Socket-Activation.md b/wiki/concepts/Socket-Activation.md new file mode 100644 index 00000000..9636726e --- /dev/null +++ b/wiki/concepts/Socket-Activation.md @@ -0,0 +1,46 @@ +--- +title: "Socket Activation" +type: concept +tags: [systemd, activation, optimization] +date: 2026-04-16 +--- + +## Definition +Socket Activation(套接字激活)是 systemd 的一种按需启动机制,只有当客户端首次请求连接时,服务才会被启动。与传统的开机自启相比,可以减少系统资源占用。 + +## Mechanism +1. systemd 创建监听套接字 +2. 客户端发起连接请求 +3. systemd 接收连接并启动服务进程 +4. 连接传递给已启动的服务 + +## Use Cases +- SSH(ssh.socket) +- D-Bus 系统消息总线 +- 打印服务(cups.socket) + +## Advantages +- 减少内存占用 +- 按需启动,节能 +- 简化服务依赖管理 + +## Comparison with Traditional Mode +| 特性 | Socket Activation | 传统开机自启 | +|------|------------------|-------------| +| 启动时机 | 按需启动 | 开机启动 | +| 资源占用 | 低 | 常驻内存 | +| 响应速度 | 首次延迟 | 即时响应 | + +## Example +```bash +# 启用 socket 激活(默认) +sudo systemctl enable ssh.socket + +# 切换回传统模式 +sudo systemctl disable ssh.socket +sudo systemctl enable ssh.service +``` + +## Connections +- [[systemd]] ← implements ← [[Socket Activation]] +- [[SSH]] ← uses ← [[Socket Activation]] \ No newline at end of file diff --git a/wiki/concepts/VLESS.md b/wiki/concepts/VLESS.md new file mode 100644 index 00000000..38e32d80 --- /dev/null +++ b/wiki/concepts/VLESS.md @@ -0,0 +1,21 @@ +--- +id: vless +title: VLESS +type: concept +tags: [protocol, proxy, security] +sources: [] +last_updated: 2026-04-16 +--- + +## Aliases +- VLESS Protocol + +## Summary +- 定义:轻量级代理协议,是 V2Ray/ Xray 的核心协议之一 +- 作用:提供高性能的科学上网服务,相比 VMESS 更轻量 + +## Key Facts +- 无状态设计,性能更高 +- 支持 TLS 伪装 +- 支持与 Reality 组合使用 +- 不需要额外的认证密钥,使用 UUID 或密码 diff --git a/wiki/concepts/Xray.md b/wiki/concepts/Xray.md new file mode 100644 index 00000000..3a1b9555 --- /dev/null +++ b/wiki/concepts/Xray.md @@ -0,0 +1,18 @@ +--- +id: xray +title: Xray +type: concept +tags: [proxy, protocol, security] +sources: [] +last_updated: 2026-04-16 +--- + +## Summary +- 定义:多功能代理软件,支持 VMESS、VLESS、Trojan、Shadowsocks 等多种协议 +- 作用:提供科学上网服务,支持流量转发和加密传输 + +## Key Facts +- 基于 V2Ray 项目发展而来 +- 支持 VLESS + Reality 组合,可实现无 TLS 特征的 TLS 伪装 +- 支持流量统计和规则分流 +- 支持多种入站和出站协议 diff --git a/wiki/entities/Bandwagon.md b/wiki/entities/Bandwagon.md new file mode 100644 index 00000000..67d14014 --- /dev/null +++ b/wiki/entities/Bandwagon.md @@ -0,0 +1,22 @@ +--- +id: bandwagon +title: Bandwagon +type: entity +tags: [vps, hosting] +sources: [] +last_updated: 2026-04-16 +--- + +## Aliases +- Bandwagon Host +- BandwagonHost +- BH + +## Summary +- 角色:VPS 服务提供商 +- 影响:提供虚拟专用服务器用于部署各类服务 + +## Key Facts +- 提供基于 OpenVZ 和 KVM 的 VPS 托管服务 +- 价格相对低廉,适合个人用户 +- 支持多种操作系统 diff --git a/wiki/entities/FastAPI.md b/wiki/entities/FastAPI.md new file mode 100644 index 00000000..ab070d5e --- /dev/null +++ b/wiki/entities/FastAPI.md @@ -0,0 +1,18 @@ +--- +title: "FastAPI" +type: entity +tags: [框架, API, FastAPI] +date: 2025-11-11 +--- + +## Aliases +- FastAPI + +## Definition +FastAPI 是一个现代、快速的 Python Web 框架,用于构建 RESTful API,基于 ASGI 标准。 + +## Role +在电商数据采集系统中,FastAPI 可作为服务层,暴露 API 给前端或 BI 工具访问采集数据。 + +## Connections +- [[FastAPI]] ← serves 数据 from [[PostgreSQL]] diff --git a/wiki/entities/MinIO.md b/wiki/entities/MinIO.md new file mode 100644 index 00000000..f0cc6eac --- /dev/null +++ b/wiki/entities/MinIO.md @@ -0,0 +1,18 @@ +--- +title: "MinIO" +type: entity +tags: [存储, 对象存储, MinIO] +date: 2025-11-11 +--- + +## Aliases +- MinIO + +## Definition +MinIO 是一个高性能的开源对象存储方案,兼容 Amazon S3 API,用于存储非结构化数据。 + +## Role +在电商数据采集系统中,MinIO 用于存储采集的图片、视频等媒体文件,模拟 S3 存储方式。 + +## Connections +- [[MinIO]] ← stores 媒体文件 from 爬虫 diff --git a/wiki/entities/OpenSSH.md b/wiki/entities/OpenSSH.md new file mode 100644 index 00000000..2a77cd5c --- /dev/null +++ b/wiki/entities/OpenSSH.md @@ -0,0 +1,27 @@ +--- +title: "OpenSSH" +type: entity +tags: [ssh, security, networking] +date: 2026-04-16 +--- + +## Definition +OpenSSH(Open Secure Shell)是 SSH(Secure Shell)协议的开源实现,提供安全的远程登录、文件传输和端口转发功能。 + +## Role +- SSH 服务端软件,提供远程登录服务 +- sftp/scp 命令用于安全文件传输 + +## Aliases +- OpenSSH Server +- sshd + +## Key Properties +- 默认端口:22 +- 支持密钥认证和密码认证 +- 支持多平台(Linux、macOS、Windows) + +## Connections +- [[systemd]] ← managed_by ← [[OpenSSH]] +- [[UFW]] ← allows ← [[OpenSSH]] +- [[Ubuntu]] ← hosts ← [[OpenSSH]] \ No newline at end of file diff --git a/wiki/entities/PostgreSQL.md b/wiki/entities/PostgreSQL.md new file mode 100644 index 00000000..44ead9f9 --- /dev/null +++ b/wiki/entities/PostgreSQL.md @@ -0,0 +1,19 @@ +--- +title: "PostgreSQL" +type: entity +tags: [数据库, PostgreSQL] +date: 2025-11-11 +--- + +## Aliases +- PostgreSQL + +## Definition +PostgreSQL 是一个功能强大的开源对象关系型数据库系统,支持复杂查询和 ACID 事务。 + +## Role +在电商数据采集系统中,PostgreSQL 用于存储采集的产品数据、AI 处理结果和业务元数据。 + +## Connections +- [[PostgreSQL]] ← stores 数据 from [[n8n]] +- [[Grafana]] ← visualizes 数据 from [[PostgreSQL]] diff --git a/wiki/entities/Rufus.md b/wiki/entities/Rufus.md new file mode 100644 index 00000000..7e4643fb --- /dev/null +++ b/wiki/entities/Rufus.md @@ -0,0 +1,23 @@ +--- +title: "Rufus" +type: entity +tags: [tool, bootable-usb, open-source] +date: 2026-04-16 +--- + +## Aliases +- Rufus +- Rufus USB Creator + +## Definition +Rufus 是一款开源的 USB 启动盘制作工具,可将 ISO 镜像写入 U 盘以创建可启动安装介质。广泛应用于安装操作系统(如 Windows、Linux)或引导恢复工具(如 Clonezilla)。 + +## Key Properties +- 开发者:Pete Batard +- 许可证:GPLv3 +- 平台:Windows(也可通过 Wine 在 Linux 运行) +- 特点:轻量级、免费、开源 + +## Connections +- [[Rufus]] ← writes ← [[Clonezilla]] +- [[Rufus]] ← creates ← Bootable USB \ No newline at end of file diff --git a/wiki/entities/UFW.md b/wiki/entities/UFW.md new file mode 100644 index 00000000..d978545d --- /dev/null +++ b/wiki/entities/UFW.md @@ -0,0 +1,32 @@ +--- +title: "UFW" +type: entity +tags: [firewall, networking, security] +date: 2026-04-16 +--- + +## Definition +UFW(Uncomplicated Firewall)是 Ubuntu 默认的防火墙管理工具,提供简化的 iptables 命令接口。 + +## Role +- Ubuntu 系统防火墙管理 +- 控制入站和出站网络流量 + +## Aliases +- Uncomplicated Firewall + +## Key Properties +- 命令行工具 +- 默认阻止所有入站连接 +- 支持 IPv4 和 IPv6 + +## Usage +```bash +sudo ufw allow ssh # 允许 SSH +sudo ufw allow 22/tcp # 允许 SSH 端口 +sudo ufw status # 查看状态 +``` + +## Connections +- [[Ubuntu]] ← uses ← [[UFW]] +- [[OpenSSH]] ← protected_by ← [[UFW]] \ No newline at end of file diff --git a/wiki/entities/Ubuntu.md b/wiki/entities/Ubuntu.md index 4f1fcb53..e121de48 100644 --- a/wiki/entities/Ubuntu.md +++ b/wiki/entities/Ubuntu.md @@ -23,4 +23,7 @@ Ubuntu 是一个基于 Debian 的开源 Linux 操作系统发行版,由 Canoni ## Connections - [[Ubuntu]] ← based_on ← [[Debian]] -- [[Ubuntu]] ← runs_frpc ← [[FRP]] \ No newline at end of file +- [[Ubuntu]] ← runs_frpc ← [[FRP]] +- [[OpenSSH]] ← hosted_by ← [[Ubuntu]] +- [[UFW]] ← built_in ← [[Ubuntu]] +- [[systemd]] ← integrated_in ← [[Ubuntu]] \ No newline at end of file diff --git a/wiki/entities/VPS2.md b/wiki/entities/VPS2.md new file mode 100644 index 00000000..1256ccef --- /dev/null +++ b/wiki/entities/VPS2.md @@ -0,0 +1,18 @@ +--- +id: vps2 +title: VPS2 +type: entity +tags: [vps, server] +sources: [] +last_updated: 2026-04-16 +--- + +## Summary +- 角色:运行在 Bandwagon 上的虚拟专用服务器 +- 用途:部署 3X-UI + Xray 代理服务 + +## Key Facts +- IP: 104.194.92.188 +- 域名: kiwi.ishenwei.online +- SSH: ssh vps2(通过 ~/.ssh/config 配置) +- Web 管理端口: 2053 diff --git a/wiki/entities/n8n.md b/wiki/entities/n8n.md new file mode 100644 index 00000000..54b72343 --- /dev/null +++ b/wiki/entities/n8n.md @@ -0,0 +1,20 @@ +--- +title: "n8n" +type: entity +tags: [自动化, 工作流, n8n] +date: 2025-11-11 +--- + +## Aliases +- n8n + +## Definition +n8n 是一个开源的工作流自动化工具,可通过可视化界面编排各种服务和自动化任务。 + +## Role +在电商数据采集系统中,n8n 负责调度爬虫、执行 AI 处理、存储结果、发送通知。 + +## Connections +- [[n8n]] ← orchestrates [[Scrapy]] +- [[n8n]] ← calls [[Ollama]] +- [[n8n]] → writes to [[PostgreSQL]] diff --git a/wiki/entities/systemd.md b/wiki/entities/systemd.md new file mode 100644 index 00000000..6f5c85fc --- /dev/null +++ b/wiki/entities/systemd.md @@ -0,0 +1,32 @@ +--- +title: "systemd" +type: entity +tags: [linux, init-system, service-manager] +date: 2026-04-16 +--- + +## Definition +systemd 是 Linux 系统的初始化(init)系统和服务管理器,作为系统的第一个进程(PID 1)运行,负责管理系统服务和socket。 + +## Role +- 系统和服务管理器 +- 提供服务启动、停止、重启功能 +- 实现 Socket Activation 和其他激活机制 + +## Key Properties +- PID 1(系统首个进程) +- 单元文件驱动(.service, .socket, .target) +- journald 日志系统 +- cgroups 资源管理 + +## Key Commands +```bash +systemctl start/stop/restart/status # 服务管理 +systemctl enable/disable # 开机自启管理 +systemctl list-units # 查看单元状态 +``` + +## Connections +- [[systemd]] ← manages ← [[OpenSSH]] +- [[systemd]] ← implements ← [[Socket Activation]] +- [[Ubuntu]] ← ships_with ← [[systemd]] \ No newline at end of file diff --git a/wiki/entities/v2rayN.md b/wiki/entities/v2rayN.md new file mode 100644 index 00000000..287004d6 --- /dev/null +++ b/wiki/entities/v2rayN.md @@ -0,0 +1,20 @@ +--- +id: v2rayn +title: v2rayN +type: entity +tags: [proxy, client, windows, linux] +sources: [] +last_updated: 2026-04-16 +--- + +## Aliases +- v2rayN + +## Summary +- 角色:Windows/Linux 平台的代理客户端 +- 用途:连接 Xray/V2Ray 代理服务器 + +## Key Facts +- 开源代理客户端 +- 支持 VMESS/VLESS/Trojan 等协议 +- 适用于 Windows 和 Linux 平台 diff --git a/wiki/entities/v2rayNG.md b/wiki/entities/v2rayNG.md new file mode 100644 index 00000000..727d3e1f --- /dev/null +++ b/wiki/entities/v2rayNG.md @@ -0,0 +1,20 @@ +--- +id: v2rayng +title: v2rayNG +type: entity +tags: [proxy, client, android] +sources: [] +last_updated: 2026-04-16 +--- + +## Aliases +- v2rayNG + +## Summary +- 角色:Android 平台的代理客户端 +- 用途:连接 Xray/V2Ray 代理服务器 + +## Key Facts +- 开源代理客户端 +- 支持 VMESS/VLESS/Trojan 等协议 +- 适用于 Android 平台 diff --git a/wiki/index.md b/wiki/index.md index 4619c408..9c2287d5 100644 --- a/wiki/index.md +++ b/wiki/index.md @@ -3,6 +3,8 @@ ## Overview - [Overview](overview.md) — 知识库总览 ## Sources +- [3X-UI Xray on BandwagonVPS](sources/3x-ui-xray-on-bandwagonvps.md) — 在 Bandwagon VPS 上安装配置 3X-UI 面板管理 Xray 代理服务 +- [可自动化、可扩展、AI增强的电商数据采集与处理系统](sources/ai-enhanced-ecommerce-data-collection-processing-system.md) — 基于 Docker + n8n + Scrapy + Playwright 的电商数据采集与处理系统设计 - [MySQL MariaDB 数据库详细信息](sources/mysql-mariadb-database-details.md) — MySQL/MariaDB 数据库配置与远程访问用户创建 - [Cloud Operating Model: Key Strategies and Best Practices](sources/Cloud-Operating-Model-Key-Strategies-and-Best-Practices.md) — 云运营模型(COM)四大支柱:治理、自动化、安全、成本管理,涵盖金融、医疗、零售、SaaS 行业用例 - [用Docker中安装Navidrome](sources/用Docker中安装Navidrome.md) — 使用 Docker 部署 Navidrome 音乐流媒体服务器的配置文件示例 @@ -25,8 +27,14 @@ - [网件RAX50路由器刷梅林固件与科学上网插件安装教程](sources/netgear-rax50-merlin-firmware-clash-installation-guide.md) — 网件RAX50路由器刷入梅林固件并安装科学上网插件的完整教程 - [RAX50 路由器更新 Merlin Clash 订阅指南](sources/rax50-router-update-merlin-clash-subscription.md) — RAX50 路由器 Merlin Clash 订阅更新教程 - [用Docker安装transmission](sources/docker-transmission-installation-guide.md) — 使用 Docker 部署 Transmission BT 下载客户端 +- [Ubuntu 24.04 启动 SSH 服务](sources/ubuntu-24.04-enable-ssh.md) — 在 Ubuntu 24.04 中启用 SSH 服务的完整步骤(安装、配置、防火墙) +- [Clonezilla对Ubuntu Server进行全盘镜像备份](sources/clonezilla-ubuntu-server-full-disk-backup.md) — 使用 Clonezilla 实现 Ubuntu Server 全盘镜像备份到 NAS ## Entities +- [Bandwagon](entities/Bandwagon.md) — VPS 服务提供商 +- [VPS2](entities/VPS2.md) — 运行在 Bandwagon 上的虚拟专用服务器 +- [v2rayN](entities/v2rayN.md) — Windows/Linux 代理客户端 +- [v2rayNG](entities/v2rayNG.md) — Android 代理客户端 - [BMC](entities/BMC.md) — 企业软件和云解决方案提供商 - [AWS](entities/AWS.md) — 全球最大公有云平台(EKS、RDS、S3、Lambda 等) - [GCP](entities/GCP.md) — Google Cloud Platform(GKE、GCS、Cloud SQL 等) @@ -59,8 +67,20 @@ - [MerlinClash](entities/MerlinClash.md) — 基于 Clash 的梅林固件科学上网插件 - [Transmission](entities/Transmission.md) — 开源 BT 下载客户端 - [LinuxServer.io](entities/LinuxServer-io.md) — 开源 Docker 镜像维护社区 +- [OpenSSH](entities/OpenSSH.md) — 开源 SSH 协议实现,提供安全远程登录 +- [UFW](entities/UFW.md) — Ubuntu 默认防火墙管理工具 +- [systemd](entities/systemd.md) — Linux 系统和服务管理器 +- [Rufus](entities/Rufus.md) — 开源 USB 启动盘制作工具 +- [n8n](entities/n8n.md) — 开源工作流自动化工具 +- [PostgreSQL](entities/PostgreSQL.md) — 开源关系型数据库 +- [FastAPI](entities/FastAPI.md) — 现代 Python Web 框架 +- [MinIO](entities/MinIO.md) — S3 兼容对象存储 ## Concepts +- [3X-UI](concepts/3X-UI.md) — Xray 可视化管理面板 +- [Xray](concepts/Xray.md) — 多功能代理软件 +- [VLESS](concepts/VLESS.md) — 轻量级代理协议 +- [Reality](concepts/Reality.md) — 无 TLS 特征的 TLS 伪装协议 - [Agentic AI](concepts/Agentic-AI.md) — 具备自主决策和任务执行能力的 AI 系统 - [Self-Healing Systems](concepts/Self-Healing-Systems.md) — 主动检测异常并自动修复的系统 - [ITSM](concepts/ITSM.md) — IT 服务管理,从工单系统演进为战略推动者 @@ -130,5 +150,11 @@ - [Clash](concepts/Clash.md) — 基于规则分流的代理客户端 - [故障转移](concepts/故障转移.md) — 连接故障时自动切换至备用节点的机制 +- [SSH](concepts/SSH.md) — 安全远程登录协议 +- [Socket Activation](concepts/Socket-Activation.md) — systemd 按需启动机制 +- [Scrapy](concepts/Scrapy.md) — Python 爬虫框架 +- [Playwright](concepts/Playwright.md) — Microsoft 浏览器自动化工具 +- [Ollama](concepts/Ollama.md) — 本地大语言模型运行环境 + ## Syntheses - (暂无) diff --git a/wiki/log.md b/wiki/log.md index 127747af..6237e548 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -1,3 +1,32 @@ +# Wiki Log + +## [2026-04-16] ingest | 可自动化、可扩展、AI增强的电商数据采集与处理系统 +- Source file: raw/Home Office/可自动化、可扩展、AI增强的电商数据采集与处理系统.md +- Status: ✅ 成功摄入 +- Summary: 基于 Docker + n8n + Scrapy + Playwright 的电商数据采集与处理系统设计,涵盖爬虫工具对比、Docker 架构、n8n 自动化流程、AI 处理建议 +- Entities created: n8n, PostgreSQL, FastAPI, MinIO +- Concepts created: Scrapy, Playwright, Ollama +- Source page: wiki/sources/ai-enhanced-ecommerce-data-collection-processing-system.md +- Notes: 三层架构(采集层→处理层→存储层);支持 Ollama 本地 AI 处理;与已存在 Docker entity 关联 + +## [2026-04-16] ingest | Clonezilla对Ubuntu Server进行全盘镜像备份 +- Source file: raw/Home Office/Clonezilla对Ubuntu Server进行全盘镜像备份.md +- Status: ✅ 成功摄入 +- Summary: 使用 Clonezilla 实现 Ubuntu Server 全盘镜像备份到 NAS,涵盖启动盘制作、NFS 连接、备份配置及灾难恢复步骤 +- Entities created: Rufus +- Concepts created: Bootable USB +- Source page: wiki/sources/clonezilla-ubuntu-server-full-disk-backup.md +- Notes: 与 rsync 增量备份形成互补;全盘镜像适合完整系统恢复场景 + +## [2026-04-16] ingest | Ubuntu 24.04 启动 SSH 服务 +- Source file: raw/Home Office/Ubuntu 24.04 enable SSH.md +- Status: ✅ 成功摄入 +- Summary: 在 Ubuntu 24.04 中启用 SSH 服务的完整步骤,包括安装 openssh-server、配置 systemctl、设置 UFW 防火墙 +- Entities created: OpenSSH, UFW, systemd +- Concepts created: Socket Activation, SSH +- Source page: wiki/sources/ubuntu-24.04-enable-ssh.md +- Notes: Ubuntu 24.04 默认使用 socket 激活机制,按需启动 SSH 服务;与已存在的 Ubuntu entity 存在关联 + ## [2026-04-16] ingest | MySQL MariaDB 数据库详细信息 - Source file: raw/Home Office/MySQL MariaDB 数据库详细信息.md - Status: ✅ 成功摄入 @@ -199,3 +228,12 @@ - Concepts created: (无新概念,科学上网、Clash、故障转移 已存在) - Source page: wiki/sources/rax50-router-update-merlin-clash-subscription.md - Notes: 与网件RAX50路由器刷梅林固件与科学上网插件安装教程存在关联;订阅更新是保持节点可用性的日常维护操作 + +## [2026-04-16] ingest | 3X-UI Xray on BandwagonVPS +- Source file: raw/Home Office/3X-UI Xray on BandwagonVPS.md +- Status: ✅ 成功摄入 +- Summary: 在 Bandwagon VPS 上安装配置 3X-UI 面板管理 Xray 代理服务,使用 VLESS+Reality 协议实现科学上网 +- Entities created: Bandwagon, VPS2, v2rayN, v2rayNG +- Concepts created: 3X-UI, Xray, VLESS, Reality +- Source page: wiki/sources/3x-ui-xray-on-bandwagonvps.md +- Notes: 与科学上网、Clash 存在概念关联;3X-UI 提供可视化面板管理 Xray 服务 diff --git a/wiki/overview.md b/wiki/overview.md index 094748f1..150e07cc 100644 --- a/wiki/overview.md +++ b/wiki/overview.md @@ -36,3 +36,5 @@ AI 开源项目、Cloud & DevOps - **Ubuntu 服务器通过 rsync 实现日常增量备份** — 使用 rsync 实现 Ubuntu 服务器到 NAS 的增量备份,涵盖 NFS 永久挂载和灾难恢复 - **RAX50 路由器更新 Merlin Clash 订阅指南** — RAX50 路由器 Merlin Clash 订阅更新教程 - **用Docker安装transmission** — 使用 Docker 部署 Transmission BT 下载客户端的配置文件示例 +- **3X-UI Xray on BandwagonVPS** — 在 Bandwagon VPS 上安装配置 3X-UI 面板管理 Xray 代理服务 +- **可自动化、可扩展、AI增强的电商数据采集与处理系统** — 基于 Docker + n8n + Scrapy + Playwright 的电商数据采集与处理系统设计,涵盖爬虫工具对比、Docker 架构、n8n 自动化流程、AI 处理建议 diff --git a/wiki/sources/3x-ui-xray-on-bandwagonvps.md b/wiki/sources/3x-ui-xray-on-bandwagonvps.md new file mode 100644 index 00000000..38e3e218 --- /dev/null +++ b/wiki/sources/3x-ui-xray-on-bandwagonvps.md @@ -0,0 +1,47 @@ +--- +id: 3x-ui-xray-on-bandwagonvps +title: 3X-UI Xray on BandwagonVPS +type: source +tags: [vps, xray, proxy, 科学上网] +sources: [] +last_updated: 2026-04-16 +--- + +## Source File +- [[raw/Home Office/3X-UI Xray on BandwagonVPS.md]] + +## Summary +- 核心主题:在 Bandwagon VPS 上安装配置 3X-UI 面板管理 Xray 代理服务 +- 问题域:科学上网、代理服务器配置 +- 方法/机制:3X-UI 面板 + VLESS+Reality 协议 +- 结论/价值:通过 Web 界面可视化管理 Xray 代理,支持多协议配置 + +## Key Claims +- 3X-UI 提供可视化管理界面,可管理 Xray 运行状态 +- VLESS+Reality 协议组合提供更强的安全性和抗检测能力 +- Bandwagon VPS 可用于部署科学上网服务 + +## Key Quotes +> "bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)" — 3X-UI 一键安装命令 + +## Key Concepts +- [[3X-UI]]:Xray 可视化管理面板 +- [[Xray]]:多功能代理软件 +- [[VLESS]]:轻量级代理协议 +- [[Reality]]:无 TLS 特征的 TLS 伪装协议 +- [[BBR]]:TCP 拥塞控制算法 + +## Key Entities +- [[Bandwagon]]:VPS 服务提供商 +- [[VPS2]]:本案例中使用的服务器名称 +- [[v2rayN]]:Windows/Linux 代理客户端 +- [[v2rayNG]]:Android 代理客户端 + +## Connections +- [[3X-UI]] ← manages ← [[Xray]] +- [[Xray]] ← uses ← [[VLESS]] +- [[Xray]] ← uses ← [[Reality]] +- [[Bandwagon]] ← hosts ← [[VPS2]] + +## Contradictions +- (暂无) diff --git a/wiki/sources/ai-enhanced-ecommerce-data-collection-processing-system.md b/wiki/sources/ai-enhanced-ecommerce-data-collection-processing-system.md new file mode 100644 index 00000000..95749428 --- /dev/null +++ b/wiki/sources/ai-enhanced-ecommerce-data-collection-processing-system.md @@ -0,0 +1,48 @@ +--- +title: "可自动化、可扩展、AI增强的电商数据采集与处理系统" +type: source +tags: [电商, 数据采集, 自动化, AI, n8n, Scrapy, Playwright] +date: 2025-11-11 +--- + +## Source File +- [[raw/Home Office/可自动化、可扩展、AI增强的电商数据采集与处理系统.md]] + +## Summary +- 核心主题:基于 Docker + Ubuntu + n8n 的电商数据采集与处理系统设计 +- 问题域:电商网站产品信息自动化采集、清洗、AI处理与可视化 +- 方法/机制:Scrapy + Playwright 爬虫层 → n8n 自动化管道 → LLM AI处理 → PostgreSQL/Grafana 存储展示 +- 结论/价值:构建可自动化、可扩展的电商数据管线,支持定时采集、AI摘要分类、异常检测、报告通知 + +## Key Claims +- Scrapy + Playwright 组合适合电商爬虫(静态抓取+动态渲染) +- n8n 可通过 workflow 实现全管线自动化 +- Ollama 本地模型可替代外部 API 进行离线 AI 处理 +- 分布式调度可用 Scrapyd 或 Archetype 实现扩展 + +## Key Quotes +> "你想要的是一个可自动化、可扩展、AI增强的数据采集与处理系统,基于 Docker + Ubuntu + n8n 搭建。" — 原文开头 + +## Key Concepts +- [[Scrapy]]:Python 爬虫框架,适合静态页面和结构化抓取 +- [[Playwright]]:Microsoft 浏览器自动化工具,支持动态页面渲染 +- [[n8n]]:开源工作流自动化工具,可编排爬虫、AI处理、数据存储 +- [[Ollama]]:本地 LLM 运行环境,支持离线 AI 处理 +- [[Docker Compose]]:多容器编排工具,定义爬虫服务架构 + +## Key Entities +- [[Docker]]:容器化平台 +- [[PostgreSQL]]:关系型数据库 +- [[Grafana]]:数据可视化工具 +- [[MinIO]]:S3 兼容对象存储 +- [[FastAPI]]:Python Web 框架,可作为服务层暴露 API + +## Connections +- [[Scrapy]] ← depends_on ← [[Playwright]] +- [[n8n]] ← orchestrates ← [[Scrapy]] +- [[n8n]] ← calls ← [[Ollama]] +- [[PostgreSQL]] ← stores ← AI处理结果 +- [[Grafana]] ← visualizes ← PostgreSQL数据 + +## Contradictions +- (暂无) diff --git a/wiki/sources/clonezilla-ubuntu-server-full-disk-backup.md b/wiki/sources/clonezilla-ubuntu-server-full-disk-backup.md new file mode 100644 index 00000000..d0633c75 --- /dev/null +++ b/wiki/sources/clonezilla-ubuntu-server-full-disk-backup.md @@ -0,0 +1,42 @@ +--- +title: "Clonezilla对Ubuntu Server进行全盘镜像备份" +type: source +tags: [backup, clonezilla, ubuntu, nfs, nas] +date: 2025-12-20 +--- + +## Source File +- [[raw/Home Office/Clonezilla对Ubuntu Server进行全盘镜像备份.md]] + +## Summary +- 核心主题:使用 Clonezilla 实现 Ubuntu Server 全盘镜像备份到 NAS +- 问题域:服务器灾难恢复、磁盘镜像备份 +- 方法/机制:Clonezilla(再生龙)+ NFS 网络存储 +- 结论/价值:实现类似 Ghost 的磁盘镜像备份,支持灾难恢复 + +## Key Claims +- Clonezilla 支持将整个磁盘备份为镜像文件,存储在 NAS 或外置硬盘上 +- 使用 NFS 协议连接 NAS 是 Linux 环境下的推荐方案 +- 备份完成后可通过 Restore 功能将镜像还原到新硬盘,实现系统即时复活 + +## Key Quotes +> "以 ISO 镜像模式写入 (推荐)" — Rufus 制作启动盘的最佳模式选择 +> "选择 -z1p (默认的高压缩率,适合节省 NAS 空间)" — 备份压缩级别选择 + +## Key Concepts +- [[Clonezilla]]:开源磁盘镜像备份工具 +- [[NFS]]:网络文件系统协议 +- [[NAS]]:网络附加存储 +- [[灾难恢复]]:系统故障后的数据还原流程 +- [[增量备份]]:仅备份变化数据的备份策略(本场景为全盘备份) + +## Key Entities +- [[Rufus]]:制作 Clonezilla 启动 U 盘的工具 +- [[Ubuntu Server]]:备份源操作系统 + +## Connections +- [[Clonezilla]] ← uses ← [[NFS]] ← stores ← [[NAS]] +- [[灾难恢复]] ← enables ← [[Clonezilla]] + +## Contradictions +- 与 [[rsync]] 增量备份相比:Clonezilla 是全盘镜像,rsync 是文件级增量备份。Clonezilla 适合完整系统恢复场景,rsync 适合日常文件同步。 \ No newline at end of file diff --git a/wiki/sources/ubuntu-24.04-enable-ssh.md b/wiki/sources/ubuntu-24.04-enable-ssh.md new file mode 100644 index 00000000..b801a25b --- /dev/null +++ b/wiki/sources/ubuntu-24.04-enable-ssh.md @@ -0,0 +1,43 @@ +--- +title: "Ubuntu 24.04 启动 SSH 服务" +type: source +tags: [ssh, ubuntu, linux] +date: 2026-04-16 +--- + +## Source File +- [[raw/Home Office/Ubuntu 24.04 enable SSH.md]] + +## Summary +- 核心主题:在 Ubuntu 24.04 中启用 SSH 远程登录服务 +- 问题域:Linux 系统管理、网络服务配置 +- 方法/机制:安装 openssh-server、配置 systemctl、设置 UFW 防火墙规则 +- 结论/价值:实现安全的远程 Linux 系统管理访问 + +## Key Claims +- Ubuntu 24.04 默认使用 ssh.socket 激活机制(按需启动),而非传统开机自启模式 +- 通过 `systemctl enable ssh` 可设置 SSH 开机自启 +- 修改自定义端口推荐使用 `systemctl edit ssh.socket` 而非直接修改配置文件 + +## Key Quotes +> "如果你发现 `systemctl status ssh` 显示服务未运行,别担心。24.04 默认使用 Socket 激活模式。" — 文档说明 socket 激活是正常行为 + +> "你可以通过 `sudo systemctl disable --now ssh.socket` 和 `sudo systemctl enable --now ssh.service` 切换回传统模式。" — 文档提供回退方案 + +## Key Concepts +- [[Socket Activation]]:按需启动服务的 systemd 机制,有连接进入时才启动守护进程 +- [[SSH]]:安全远程登录协议 +- [[UFW]]:Ubuntu 默认防火墙工具 + +## Key Entities +- [[OpenSSH]]:开源 SSH 协议实现 +- [[Ubuntu]]:基于 Debian 的 Linux 发行版 +- [[systemd]]:Linux 系统和服务管理器 + +## Connections +- [[OpenSSH]] ← depends_on ← [[systemd]] +- [[Ubuntu]] ← hosts ← [[OpenSSH]] +- [[UFW]] ← protects ← [[SSH]] + +## Contradictions +- (无) \ No newline at end of file