File tree Expand file tree Collapse file tree 5 files changed +51
-0
lines changed
Expand file tree Collapse file tree 5 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ ## 1. 安装 1panel-migrator
2+
3+ ### 1.1 安装包获取
4+
5+ 请访问 Gitee 发布页,手动下载适用于您服务器架构的安装包,并将其放置到 ` /tmp ` 目录:
6+
7+ > 🔗 https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/releases/
8+
9+ 每个版本会提供以下架构的安装包(文件名示例):
10+
11+ - ` 1panel-migrator-linux-amd64 `
12+ - ` 1panel-migrator-linux-arm64 `
13+ - ` 1panel-migrator-linux-arm `
14+ - ` 1panel-migrator-linux-ppc64le `
15+ - ` 1panel-migrator-linux-s390x `
16+
17+ ### 1.2 安装步骤(以 amd64 架构为例)
18+
19+ ``` bash
20+ # 1. 进入临时目录
21+ cd /tmp
22+
23+ # 2. 添加执行权限
24+ chmod +x 1panel-migrator-linux-amd64
25+
26+ # 3. 移动至系统 PATH 中并重命名
27+ mv 1panel-migrator-linux-amd64 /usr/local/bin/1panel-migrator
28+ ```
29+
30+ ## 2. 从节点 -> 主节点
31+
32+ !!! note ""
33+
34+ 从节点升级为主节点需要先在原来主节点上设置好主节点备份,仅存在备份文件的主节点支持升级到主节点
35+
36+ 1 . 打开节点列表,点击上方主节点备份
37+ 2 . 勾选备份节点,设置自动备份频率及保留份数,保存设置
38+ 3 . 点击执行备份,查看备份结果
39+
40+ ![ img.png] ( ../../img/installation/master_backup.png )
41+
42+ 4 . 打开需要升级的从节点,通过安装好的 1panel-migrator 执行升级命令 ` 1panel-migrator promote `
43+
44+ ![ img.png] ( ../../img/installation/promote.png )
45+
46+ ## 3. 主节点 -> 从节点
47+
48+ 1 . 打开需要降级的主节点,通过安装好的 1panel-migrator 执行降级命令 ` 1panel-migrator demote `
49+
50+ ![ img.png] ( ../../img/installation/demote.png )
Original file line number Diff line number Diff line change 4747 - 从 V1 版本升级 :
4848 - 升级说明 : installation/v1_migrate.md
4949 - 操作步骤 : installation/v1_migrate_steps.md
50+ - 主从节点切换 : installation/master_migrate.md
5051 - 命令行工具 : installation/cli.md
5152 - 功能手册 :
5253 - 应用商店 :
You can’t perform that action at this time.
0 commit comments