记录生产数据库初始化重置

This commit is contained in:
2026-07-14 15:45:08 +08:00
parent 8a95e33e38
commit a9e12516df
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -609,3 +609,11 @@
- Nginx 验证:`nginx -t` 成功,`nginx.service` 为 `active`;根域名、店务独立域名、HTTP 到 HTTPS 跳转、`/api/`、`/admin/api/` 和 `/health/check` 路由配置均与生产规划一致。
- 公网验证:`https://yunail.art/` 和 `https://www.yunail.art/` 返回设计师端入口;`https://yunail.art/jy-salon-front/` 和 `https://salon.yunail.art/` 返回店务端入口;`https://yunail.art/health/check` 与 `https://salon.yunail.art/health/check` 均返回 Gateway JSON;`http://salon.yunail.art/` 返回 301 到 HTTPS。
- 证书验证:公网 HTTPS 正常校验通过,证书未过期,有效期至 2026-10-07 06:14:28 UTC。
## 2026-07-14 生产数据库初始化重置验收
- 执行目标:生产 Nacos namespace `jayu-cloud`、`mysql02` 的 `jayu_cloud`、3 个 Core 节点和 3 个 Gateway 节点。
- 前置校验:`datasource.yaml` 与 `infra.yaml` 均指向 `192.168.5.110:3306/jayu_cloud`;MySQL 预检确认 3306 可连接、目标 schema 存在、临时写入检查通过、`mysqldump` 检查通过。
- 执行结果:按 Gateway、Core 顺序停服后完成备份与初始化导入;备份文件为 `/tmp/jayu_cloud_backup_20260714153759.sql`;初始化后表数量为 58,默认管理员 `xiaowang` 数量为 1,管理员权限绑定数量为 77,`t_order`、`t_shop`、`t_product` 均为 0。
- 服务恢复:按 Core、Gateway 顺序启动后,6 个 systemd 服务均为 `active`;Nacos 中 `jy-core` 和 `jy-gateway` 均为 3/3 healthy。
- 公网验证:`https://yunail.art/`、`https://www.yunail.art/`、`https://yunail.art/health/check`、`https://salon.yunail.art/health/check` 均返回 200;后台默认管理员登录验证成功,登录密码不写入仓库文档。