1.MongoDB下载地址:https://www.cnblogs.com/
2.启动服务得命令
1.services.msc启动服务
2.net start "mongodb server" net stop "mongodb server"
3.mangdb得path加入环境变量
mongo --host --port 27017
3.设置登陆用户
use admin
db.createUser({
user:"admin",
pwd:"abc123456",
roles:[{role:"root",db:"admin"}]
})
mongod --config "C:\Program Files\MongoDB\Server\4.2\mango.cnf" --reinstall