首先到官网下载安装包。( https://www.mongodb.com/download-center#community )
1.创建mongodb目录
4.启动mongodb
到C:\Windows\System32 目录下 右击cmd 选择已管理员身份运行