mongodb命令:
mongod -dbpath "D:\mongodb\data\db"
mongod --dbpath "D:\mongodb\data\db" --logpath "D:\mongodb\data\logs\MongoDB.log" --install --serviceName "MongoDB"
//
>NET START MongoDB (开启服务)
>NET stop MongoDB (关闭服务)
//移除
mongod --dbpath "D:\mongodb\data\db" --logpath "D:\mongodb\data\logs\MongoDB.log\MongoDB.log" --remove --serviceName "MongoDB"
文档结构: