三、D:\下建立data目錄,目錄中建立db和log文件夾
四、建立mongod.log文件mongodb
![](http://static.javashuo.com/static/loading.gif)
五、修改配置文件數據庫
![](http://static.javashuo.com/static/loading.gif)
systemLog:
destination: file
path: D:\data\log\mongod.log
storage:
dbPath: D:\data\db
六、啓動配置文件
七、啓動服務
進入到D:\MongoDB\bin
輸入mongo
show databases
python使用mongodb,不須要建立數據庫、表,直接能夠使用,像字典同樣
查找
八、在python中使用,還須要按照pymongowindows
python3 -m pip install pymongo