nac-docs-center/logs/nac-migration-final-2026033...

78 lines
2.3 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.

# NAC 公链服务迁移最终报告
**报告日期:** 2026年3月31日
**报告编制:** Manus AI
**项目名称:** NAC 公链生产服务从备份服务器 S2 迁移至生产服务器 S1
---
## 一、项目概述
本次迁移工作的核心目标是将 NACNew Asset Chain公链的三大核心业务系统从备份服务器 S2103.96.148.7)统一迁移至生产服务器 S1103.43.188.244),实现所有生产服务的集中部署,同时将 S2 逐步转变为纯备份服务器角色。
---
## 二、服务器架构
| 服务器代号 | IP 地址 | 角色 | 备注 |
|-----------|---------|------|------|
| S1 | 103.43.188.244 | 生产服务器(主站) | 所有生产服务已迁移至此 |
| S2 | 103.96.148.7 | 备份服务器 | 逐步转为纯备份角色 |
---
## 三、迁移完成清单
### 3.1 身份注册系统id.newassetchain.io
- **迁移路径:** S4 → S1
- **技术栈:** Laravel + PHP-FPM + MySQL
- **状态:** 生产就绪
### 3.2 区块链浏览器lens.newassetchain.io
- **迁移路径:** S2 → S1
- **技术栈:** React + nac-api-server v3.1.0Rust
- **微服务:** 18 个 NAC 微服务全部迁移
- **状态:** 生产就绪
### 3.3 一键上链系统new.newassetchain.io
- **迁移路径:** S2 → S1
- **技术栈:** FastAPIPython+ MongoDB
- **服务端口:** 9552nac-onboarding
- **状态:** 生产就绪
---
## 四、本次操作记录new.newassetchain.io
| 步骤 | 操作 | 结果 |
|------|------|------|
| Step 1 | systemctl stop/disable nac-frontend | 成功 |
| Step 2 | MongoDB 创建 nac_user 用户 | 成功 |
| Step 3 | 创建 Nginx 配置 new.newassetchain.io.conf | 成功 |
| Step 4 | nginx -s reload 重载配置 | 成功 |
| Step 5 | DNS 更新到 103.43.188.244 | 成功 |
| Step 6 | 全面验证三大系统 | 全部通过 |
---
## 五、DNS 最终状态
| 域名 | 目标 IP | 状态 |
|------|---------|------|
| id.newassetchain.io | 103.43.188.244 (S1) | 已验证 |
| lens.newassetchain.io | 103.43.188.244 (S1) | 已验证 |
| new.newassetchain.io | 103.43.188.244 (S1) | 已验证 |
---
## 六、SSL 证书
- **类型:** Certum 通配符证书 *.newassetchain.io
- **有效期至:** 2027-01-31
---
## 七、结论
NAC 公链三大核心业务系统已全部成功迁移至生产服务器 S1。迁移工作圆满完成。