windows安装mongodb(快速简易版)
2019獨角獸企業重金招聘Python工程師標準>>>
1.下載mongodb-win32-x86_64-enterprise-windows-64-3.4.9.zip并解壓,
然后創建數據文件和日志文件保存路徑
d:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\data\db
d:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\log
2.創建配置文件mongod.cfg
systemLog:destination: filepath: d:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\log\mongod.log storage:dbPath: d:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\data\db3.以管理員身份運行cmd 安裝mongodb服務
"D:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\bin\mongod.exe" --config "D:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\mongod.cfg" --install
4.啟停mongodb服務
net start MongoDB net stop MongoDB5.卸載mongodb服務
"D:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\bin\mongod.exe" --remove
6.連接mongodb并進行驗證
先打開mongodb安裝目錄下的bin目錄,然后執行mongo.exe
show dbs
技術分享離不開您的支持,您的支持是我源源不斷的動力。
微信
支付寶
轉載于:https://my.oschina.net/u/1184659/blog/1556374
總結
以上是生活随笔為你收集整理的windows安装mongodb(快速简易版)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 顶级IP将迎新作!华纳兄弟官宣重启《指环
- 下一篇: windows下kafka源码阅读环境搭