From 4a38026c074998c3a9f79eaaa381fdabc8ce8407 Mon Sep 17 00:00:00 2001 From: WanWanYun Date: Mon, 10 Nov 2025 23:49:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0:=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0v1.1.3=E5=8D=B8=E8=BD=BD=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新内容: - INSTALL_GUIDE.md: 完善FAQ第6项卸载说明 - 添加一键卸载命令(3种方式) - 详细说明卸载特性:双重确认、数据备份、完整清理 - 说明保留系统环境,仅删除项目文件 - 添加智能残留检查说明 --- INSTALL_GUIDE.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/INSTALL_GUIDE.md b/INSTALL_GUIDE.md index 750fd49..14880ae 100644 --- a/INSTALL_GUIDE.md +++ b/INSTALL_GUIDE.md @@ -181,6 +181,35 @@ pm2 restart wanwanyun-backend ``` ### 6. 如何卸载? +使用一键卸载命令: +```bash +# 方式1: 在线卸载 +curl -fsSL https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.sh | bash -s -- --uninstall + +# 方式2: 在线卸载 +wget -qO- https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.sh | bash -s -- --uninstall + +# 方式3: 本地卸载(如果已下载脚本) +bash install.sh --uninstall +``` + +**卸载特性**: +- 双重确认机制,防止误删 +- 可选数据备份到 `/root/wanwanyun-backup-YYYYMMDD-HHMMSS` +- 完整清理: + - PM2 进程: wanwanyun-backend + - 项目目录: /var/www/wanwanyun + - Nginx 配置: /etc/nginx/sites-enabled/wanwanyun.conf + - SSL 证书: /etc/nginx/ssl/* + - 临时文件和缓存 +- 保留系统环境: + - Node.js + - Nginx + - PM2 + - 编译工具(build-essential、gcc-c++等) +- 智能残留检查 + +**手动卸载**(仅作参考,推荐使用自动卸载): ```bash # 停止服务 pm2 delete wanwanyun-backend