一、安装mongodb6.0.2
1.官网下载社区版
https://www.mongodb.com/
2.双击下载的文件,按步骤安装
选择custom 自定义安装
改一下安装地址,路径最好不要带空格
Install MongoD as a Service
作为服务方式安装
Run the service as Network Service user (Default)
使用Windows内置的Windows用户帐户启动服务
Run the service as a local or domain user
以本地或域用户身份运行服务
Service Name