https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
选择路径(D:\DevTools\mongodb\)进行安装
在安装路径下创建data\db和data\log两个文件夹
安装路径下创建配置文件:mongodb\mongod.cfg,内容如下: systemLog: destination: file path: D:\DevTools\mongodb\data\log\mongod.log storage: dbPath: D:\DevTools\mongodb\data\db
运行命令需要用管理员权限:
D:\DevTools\mongodb\bin\mongod.exe --config "D:\DevTools\mongodb\mongod.cfg" --install
启动服务:net start MongoDB
关闭服务:net stop MongoDB
移除服务:D:\DevTools\mongodb\bin\mongod.exe --remove
下载客户端程序: https://download.robomongo.org/1.2.1/windows/robo3t-1.2.1-windows-x86_64-3e50a65.zip
解压到指定目录,打开robo3t.exe并连接到localhost:27017