windows server2012 搭建Yapi

先安装Mongodb

https://www.mongodb.com/download-center/community

mongodb安装好之后,可视化部署安装Yapi

npm install -g yapi-cli --registry https://registry.npm.taobao.org 
yapi server

安装提示步骤操作,然后打开127.0.0.1:9090
出现初始页面,初始化之后,管理员账号一般为ymfe.org

进入my-api根目录

node vendors/server/app.js  

.bat脚本备份Mongodb yapi ,按日期备份

@echo off

mongodump -h 127.0.0.1 -d yapi -o D:\MongoDB\BackupDB\%date:~0,4%-%date:~5,2%-%date:~8,2%

success

你可能感兴趣的:(windows server2012 搭建Yapi)