Skip to content

node+mongodb 网站迁移后(前端资源插件库版本)

Notifications You must be signed in to change notification settings

xiaosongread/node

Repository files navigation

node+mongodb前端资源库版本博客源码

网站迁移后

准备条件

  • 安装node+npm环境
  • 安装本地mongodb 数据库

use

npm install //安装对应的依赖
node app1.js // 启动服务

文件中的20190513-mongdbbak.zip博客数据,恢复博客数据。
1.压缩此压缩包
2.启动mongodb,mongod --dbpath=/Users/songyanbin/Desktop/node/db
3.执行mongorestore -d data --dir 数据的目录的绝对路径(此路径为压缩文件之后的目录文件)(r比如:/Users/songyanbin/Desktop/mongdbbak/data/)

运行此项目,恢复数据这块可以不执行,默认就是没有数据。

输入http://localhost:8008/resources,效果如下:

blockchain blockchain

---- 作者:小宋 ----

About

node+mongodb 网站迁移后(前端资源插件库版本)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published