下載,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 關閉服務
---