- 创建 /api/enhance 路由,实现图片变清晰API集成 - 在图片标注组件中添加变清晰按钮(Sparkles图标) - 在相册页面添加变清晰按钮 - 系统设置:将抠图设置改名为本地AI设置,添加变清晰API配置 - 支持同步和异步两种模式 - 自动上传到S3存储桶并保存到数据库 - 在相册和出图记录中显示处理后的图片
67 lines
2.7 KiB
Plaintext
67 lines
2.7 KiB
Plaintext
==========================================
|
||
AI Chatbot 服务器迁移脚本
|
||
==========================================
|
||
新服务器: root@45.192.99.48:22
|
||
域名: ai.yydd.ai
|
||
应用端口: 3125
|
||
从Git仓库拉取源码和备份数据库
|
||
时间: Sun Dec 28 18:19:15 CST 2025
|
||
==========================================
|
||
|
||
✅ 找到数据库备份文件: /Users/lanmu/Desktop/ai-chatbot-main/migration-backup-complete/database_complete.dump (144M)
|
||
✅ Git仓库: http://git.1080p.hk/chenpei/ai-chatbot.git
|
||
|
||
🔍 测试新服务器连接...
|
||
✅ 新服务器连接正常
|
||
|
||
📦 步骤 1/8: 在新服务器上安装必要软件...
|
||
Pseudo-terminal will not be allocated because stdin is not a terminal.
|
||
Last failed login: Sun Dec 28 18:19:18 CST 2025 from 102.88.137.80 on ssh:notty
|
||
There were 179 failed login attempts since the last successful login.
|
||
检测系统类型...
|
||
检测到CentOS/RHEL系统,使用dnf包管理器
|
||
跳过系统更新,直接安装所需软件...
|
||
安装基础工具...
|
||
Dependencies resolved.
|
||
Nothing to do.
|
||
Complete!
|
||
安装PostgreSQL...
|
||
安装Node.js 20.x...
|
||
使用NodeSource安装Node.js 20...
|
||
[38;5;79m2025-12-28 18:19:24 - Cleaning up old repositories...[0m
|
||
[38;5;79m2025-12-28 18:19:24 - Old repositories removed[0m
|
||
[38;5;79m2025-12-28 18:19:24 - Supported architecture: x86_64[0m
|
||
[38;5;79m2025-12-28 18:19:24 - Added N|Solid repository for LTS version: 20.x[0m
|
||
[38;5;79m2025-12-28 18:19:24 - dnf available, updating...[0m
|
||
Node.js Packages for Linux RPM based distros - 62 kB/s | 3.0 kB 00:00
|
||
Metadata cache created.
|
||
N|Solid Packages for Linux RPM based distros - 62 kB/s | 3.0 kB 00:00
|
||
Metadata cache created.
|
||
[38;5;79m2025-12-28 18:19:25 - Repository is configured and updated.[0m
|
||
[38;5;79m2025-12-28 18:19:25 - You can use N|solid Runtime as a node.js alternative[0m
|
||
[1;32m2025-12-28 18:19:25 - To install N|solid Runtime, run: dnf install nsolid -y[0m
|
||
[38;5;79m2025-12-28 18:19:25 - Run 'dnf install nodejs -y' to complete the installation.[0m
|
||
Dependencies resolved.
|
||
Nothing to do.
|
||
Complete!
|
||
Node.js安装完成
|
||
安装PM2和pnpm...
|
||
安装Nginx...
|
||
安装Certbot (Let's Encrypt)...
|
||
No match for argument: certbot
|
||
No match for argument: python3-certbot-nginx
|
||
Error: Unable to find a match: certbot python3-certbot-nginx
|
||
✅ 所有软件安装完成
|
||
|
||
📥 步骤 2/8: 从Git仓库克隆项目...
|
||
Pseudo-terminal will not be allocated because stdin is not a terminal.
|
||
Last failed login: Sun Dec 28 18:19:18 CST 2025 from 102.88.137.80 on ssh:notty
|
||
There were 179 failed login attempts since the last successful login.
|
||
删除现有目录...
|
||
正在从Git仓库克隆...
|
||
Cloning into '/var/www/ai-chatbot'...
|
||
✅ 项目代码已从Git仓库克隆
|
||
|
||
📤 步骤 3/8: 上传数据库备份...
|
||
./migrate-to-new-server.sh: line 198: hpass: command not found
|