Auto-sync: 2026-04-16 21:08
This commit is contained in:
18
wiki/concepts/3X-UI.md
Normal file
18
wiki/concepts/3X-UI.md
Normal file
@@ -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 加速等功能
|
||||
19
wiki/concepts/Bootable-USB.md
Normal file
19
wiki/concepts/Bootable-USB.md
Normal file
@@ -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 修复系统故障
|
||||
21
wiki/concepts/Ollama.md
Normal file
21
wiki/concepts/Ollama.md
Normal file
@@ -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]]
|
||||
20
wiki/concepts/Playwright.md
Normal file
20
wiki/concepts/Playwright.md
Normal file
@@ -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]]
|
||||
18
wiki/concepts/Reality.md
Normal file
18
wiki/concepts/Reality.md
Normal file
@@ -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 等协议组合使用
|
||||
- 提供更强的抗检测能力
|
||||
34
wiki/concepts/SSH.md
Normal file
34
wiki/concepts/SSH.md
Normal file
@@ -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]]
|
||||
20
wiki/concepts/Scrapy.md
Normal file
20
wiki/concepts/Scrapy.md
Normal file
@@ -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]]
|
||||
46
wiki/concepts/Socket-Activation.md
Normal file
46
wiki/concepts/Socket-Activation.md
Normal file
@@ -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]]
|
||||
21
wiki/concepts/VLESS.md
Normal file
21
wiki/concepts/VLESS.md
Normal file
@@ -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 或密码
|
||||
18
wiki/concepts/Xray.md
Normal file
18
wiki/concepts/Xray.md
Normal file
@@ -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 伪装
|
||||
- 支持流量统计和规则分流
|
||||
- 支持多种入站和出站协议
|
||||
Reference in New Issue
Block a user