下载,MongoDB官网下载中心 下载_.msi_安装版mongodb
Custom
- C:\MongoDB\Server\4.1\ - D:\MongoDB\Server\4.1\
Install MongoDB Compass
前面的勾去掉(否则会安装好久好久,并且也用不到)如:"C:\MongoDB\Server\4.1\bin"
目录添加到系统环境变量mongod --dbpath C:\MongoDB\Server\4.1\bin\data]
It looks like you are trying to access MongoDB over HTTP on the native driver port.
net start MongoDB
and net stop MongoDB
mongod -remove
,卸载MongoDB Server服务(可经过运行 services.msc
查看服务卸载状况)mongod.cfg
文件,写入:systemLog: destination: file path: E:\MongoDB\log\mongod.log storage: dbPath: E:\MongoDB\data
mongod --config "C:\MongoDB\Server\4.1\mongod.cfg" --install
Service can be started from the command line with 'net start MongoDB'
- net start MongoDB 开启服务 - net stop MongoDB 关闭服务
---