翻译文档

This commit is contained in:
yinjianm
2026-02-22 04:13:42 +08:00
parent 267aeec5ba
commit 2d14e22322
13 changed files with 683 additions and 687 deletions
+18 -18
View File
@@ -1,54 +1,54 @@
# Configuration Migration Guide
# 配置迁移指南
This guide explains how to migrate configuration files from v2board to Xboard. Xboard stores configurations in the database instead of files.
本指南说明如何将配置文件从 v2board 迁移到 XboardXboard 将配置存储在数据库中,而不是文件中。
### 1. Docker Compose Environment
### 1. Docker Compose 环境
1. Prepare configuration file:
1. 准备配置文件:
```bash
# Create config directory
# 创建 config 目录
mkdir config
# Copy old configuration file
# 复制旧配置文件
cp old-project-path/config/v2board.php config/
```
2. Modify `docker-compose.yaml`, uncomment the following line:
2. 修改 `docker-compose.yaml`,取消注释以下行:
```yaml
- ./config/v2board.php:/www/config/v2board.php
```
3. Execute migration:
3. 执行迁移:
```bash
docker compose run -it --rm web php artisan migrateFromV2b config
```
### 2. aaPanel Environment
### 2. aaPanel 环境
1. Copy configuration file:
1. 复制配置文件:
```bash
cp old-project-path/config/v2board.php config/v2board.php
```
2. Execute migration:
2. 执行迁移:
```bash
php artisan migrateFromV2b config
```
### 3. aaPanel + Docker Environment
### 3. aaPanel + Docker 环境
1. Copy configuration file:
1. 复制配置文件:
```bash
cp old-project-path/config/v2board.php config/v2board.php
```
2. Execute migration:
2. 执行迁移:
```bash
docker compose run -it --rm web php artisan migrateFromV2b config
```
### Important Notes
### 重要说明
- After modifying the admin path, service restart is required:
- Docker environment: `docker compose restart`
- aaPanel environment: Restart the Octane daemon process
- 修改后台路径后需要重启服务:
- Docker 环境:`docker compose restart`
- aaPanel 环境:重启 Octane 守护进程
+11 -11
View File
@@ -1,21 +1,21 @@
# Upgrade from `new-dev` to Latest Docker Version
# `new-dev` 升级到最新 Docker 版本
This guide uses Docker Compose to move from an old `new-dev` deployment flow to the latest version.
本指南使用 Docker Compose,将旧的 `new-dev` 部署流程迁移到最新版本。
## 1. Get the project
## 1. 获取项目
```bash
git clone -b compose --depth 1 https://github.com/Micah123321/Xboard Xboard-new
cd Xboard-new
```
If your local file is `compose.sample.yaml`, create `compose.yaml` first:
如果你的本地文件是 `compose.sample.yaml`,请先创建 `compose.yaml`
```bash
cp compose.sample.yaml compose.yaml
```
## 2. Initialize with built-in SQLite + Redis
## 2. 使用内置 SQLite + Redis 初始化
```bash
docker compose run -it --rm \
@@ -25,9 +25,9 @@ docker compose run -it --rm \
web php artisan xboard:install
```
## 3. Update `.env` to MySQL configuration
## 3. `.env` 更新为 MySQL 配置
Edit `.env` and switch database settings to MySQL:
编辑 `.env`,将数据库配置切换为 MySQL
```env
DB_CONNECTION=mysql
@@ -38,22 +38,22 @@ DB_USERNAME=your_user
DB_PASSWORD=your_password
```
Then run:
然后执行:
```bash
docker compose run -it --rm web php artisan xboard:update
```
## 4. Start services
## 4. 启动服务
```bash
docker compose up -d
```
## 5. Check status
## 5. 检查状态
```bash
docker compose ps
docker compose logs -f web
docker compose logs -f horizon
```
```
+33 -33
View File
@@ -1,63 +1,63 @@
# V2board 1.7.3 Migration Guide
# V2board 1.7.3 迁移指南
This guide explains how to migrate from V2board version 1.7.3 to Xboard.
本指南说明如何从 V2board 1.7.3 版本迁移到 Xboard
### 1. Database Changes Overview
### 1. 数据库变更概览
- `v2_stat_order` table renamed to `v2_stat`:
- `order_amount` `order_total`
- `commission_amount` `commission_total`
- New fields added:
- `paid_count` (integer, nullable)
- `paid_total` (integer, nullable)
- `register_count` (integer, nullable)
- `invite_count` (integer, nullable)
- `transfer_used_total` (string(32), nullable)
- `v2_stat_order` 表重命名为 `v2_stat`
- `order_amount` -> `order_total`
- `commission_amount` -> `commission_total`
- 新增字段:
- `paid_count`integer, nullable
- `paid_total`integer, nullable
- `register_count`integer, nullable
- `invite_count`integer, nullable
- `transfer_used_total`string(32), nullable
- New tables added:
- 新增数据表:
- `v2_log`
- `v2_server_hysteria`
- `v2_server_vless`
### 2. Prerequisites
### 2. 前置条件
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
- [Docker Compose Deployment](../installation/docker-compose.md)
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
- [aaPanel Deployment](../installation/aapanel.md)
> 注意:请先完成 Xboard 基础安装(不支持 SQLite):
- [Docker Compose 部署](../installation/docker-compose.md)
- [aaPanel + Docker 部署](../installation/aapanel-docker.md)
- [aaPanel 部署](../installation/aapanel.md)
### 3. Migration Steps
### 3. 迁移步骤
#### Docker Environment
#### Docker 环境
```bash
# 1. Stop services
# 1. 停止服务
docker compose down
# 2. Clear database
# 2. 清空数据库
docker compose run -it --rm web php artisan db:wipe
# 3. Import old database (Important)
# Please manually import the V2board 1.7.3 database
# 3. 导入旧数据库(重要)
# 请手动导入 V2board 1.7.3 数据库
# 4. Execute migration
# 4. 执行迁移
docker compose run -it --rm web php artisan migratefromv2b 1.7.3
```
#### aaPanel Environment
#### aaPanel 环境
```bash
# 1. Clear database
# 1. 清空数据库
php artisan db:wipe
# 2. Import old database (Important)
# Please manually import the V2board 1.7.3 database
# 2. 导入旧数据库(重要)
# 请手动导入 V2board 1.7.3 数据库
# 3. Execute migration
# 3. 执行迁移
php artisan migratefromv2b 1.7.3
```
### 4. Configuration Migration
### 4. 配置迁移
After completing the data migration, you need to migrate the configuration file:
- [Configuration Migration Guide](./config.md)
数据迁移完成后,还需要迁移配置文件:
- [配置迁移指南](./config.md)
+24 -24
View File
@@ -1,51 +1,51 @@
# V2board 1.7.4 Migration Guide
# V2board 1.7.4 迁移指南
This guide explains how to migrate from V2board version 1.7.4 to Xboard.
本指南说明如何从 V2board 1.7.4 版本迁移到 Xboard
### 1. Database Changes Overview
### 1. 数据库变更概览
- New table added:
- 新增数据表:
- `v2_server_vless`
### 2. Prerequisites
### 2. 前置条件
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
- [Docker Compose Deployment](../installation/docker-compose.md)
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
- [aaPanel Deployment](../installation/aapanel.md)
> 注意:请先完成 Xboard 基础安装(不支持 SQLite):
- [Docker Compose 部署](../installation/docker-compose.md)
- [aaPanel + Docker 部署](../installation/aapanel-docker.md)
- [aaPanel 部署](../installation/aapanel.md)
### 3. Migration Steps
### 3. 迁移步骤
#### Docker Environment
#### Docker 环境
```bash
# 1. Stop services
# 1. 停止服务
docker compose down
# 2. Clear database
# 2. 清空数据库
docker compose run -it --rm web php artisan db:wipe
# 3. Import old database (Important)
# Please manually import the V2board 1.7.4 database
# 3. 导入旧数据库(重要)
# 请手动导入 V2board 1.7.4 数据库
# 4. Execute migration
# 4. 执行迁移
docker compose run -it --rm web php artisan migratefromv2b 1.7.4
```
#### aaPanel Environment
#### aaPanel 环境
```bash
# 1. Clear database
# 1. 清空数据库
php artisan db:wipe
# 2. Import old database (Important)
# Please manually import the V2board 1.7.4 database
# 2. 导入旧数据库(重要)
# 请手动导入 V2board 1.7.4 数据库
# 3. Execute migration
# 3. 执行迁移
php artisan migratefromv2b 1.7.4
```
### 4. Configuration Migration
### 4. 配置迁移
After completing the data migration, you need to migrate the configuration file:
- [Configuration Migration Guide](./config.md)
数据迁移完成后,还需要迁移配置文件:
- [配置迁移指南](./config.md)
+32 -32
View File
@@ -1,61 +1,61 @@
# V2board Dev Migration Guide
# V2board Dev 迁移指南
This guide explains how to migrate from V2board Dev version (2023/10/27) to Xboard.
本指南说明如何从 V2board Dev 版本(2023/10/27)迁移到 Xboard
⚠️ Please upgrade to version 2023/10/27 following the official guide before proceeding with migration.
> 注意:迁移前请先按官方指南升级到 2023/10/27 版本。
### 1. Database Changes Overview
### 1. 数据库变更概览
- `v2_order` table:
- Added `surplus_order_ids` (text, nullable) - Deduction orders
- `v2_order` 表:
- 新增 `surplus_order_ids`text, nullable- 扣费订单
- `v2_plan` table:
- Removed `daily_unit_price` - Affects period value
- Removed `transfer_unit_price` - Affects traffic value
- `v2_plan` 表:
- 移除 `daily_unit_price` - 影响周期价格
- 移除 `transfer_unit_price` - 影响流量价格
- `v2_server_hysteria` table:
- Removed `ignore_client_bandwidth` - Affects bandwidth configuration
- Removed `obfs_type` - Affects obfuscation type configuration
- `v2_server_hysteria` 表:
- 移除 `ignore_client_bandwidth` - 影响带宽配置
- 移除 `obfs_type` - 影响混淆类型配置
### 2. Prerequisites
### 2. 前置条件
⚠️ Please complete the basic Xboard installation first (SQLite not supported):
- [Docker Compose Deployment](../installation/docker-compose.md)
- [aaPanel + Docker Deployment](../installation/aapanel-docker.md)
- [aaPanel Deployment](../installation/aapanel.md)
> 注意:请先完成 Xboard 基础安装(不支持 SQLite):
- [Docker Compose 部署](../installation/docker-compose.md)
- [aaPanel + Docker 部署](../installation/aapanel-docker.md)
- [aaPanel 部署](../installation/aapanel.md)
### 3. Migration Steps
### 3. 迁移步骤
#### Docker Environment
#### Docker 环境
```bash
# 1. Stop services
# 1. 停止服务
docker compose down
# 2. Clear database
# 2. 清空数据库
docker compose run -it --rm web php artisan db:wipe
# 3. Import old database (Important)
# Please manually import the V2board Dev database
# 3. 导入旧数据库(重要)
# 请手动导入 V2board Dev 数据库
# 4. Execute migration
# 4. 执行迁移
docker compose run -it --rm web php artisan migratefromv2b dev231027
```
#### aaPanel Environment
#### aaPanel 环境
```bash
# 1. Clear database
# 1. 清空数据库
php artisan db:wipe
# 2. Import old database (Important)
# Please manually import the V2board Dev database
# 2. 导入旧数据库(重要)
# 请手动导入 V2board Dev 数据库
# 3. Execute migration
# 3. 执行迁移
php artisan migratefromv2b dev231027
```
### 4. Configuration Migration
### 4. 配置迁移
After completing the data migration, you need to migrate the configuration file:
- [Configuration Migration Guide](./config.md)
数据迁移完成后,还需要迁移配置文件:
- [配置迁移指南](./config.md)