1.服务器系统做快照(做好备份到本地,确保快照和备份都做好了)

然后登录独立的ssh终端 或服务器管理后台vnc链接终端 执行这个命令

2.if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;···

阅读全文 »

  <meta name="viewport" content=

阅读全文 »

sudo npm install -g pm2 --registry=https://registry.npm.taobao.org

阅读全文 »

执行 mongorestore 恢复数据

现在开始使用 mongorestore 恢复数据。mongorestore 是 MongoDB 提供的工具,用于从 .bson 文件中恢复数据到新的 MongoDB 实例。

假设你的备份文件路径为 /home/backup/my_project_db/,并且其中包含 .bs···

阅读全文 »