windows安装mongodb(快速简易版)
2019獨角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
1.下載mongodb-win32-x86_64-enterprise-windows-64-3.4.9.zip并解壓,
然后創(chuàng)建數(shù)據(jù)文件和日志文件保存路徑
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.創(chuàng)建配置文件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服務(wù)
"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服務(wù)
net start MongoDB net stop MongoDB5.卸載mongodb服務(wù)
"D:\mongodb-win32-x86_64-enterprise-windows-64-3.4.9\bin\mongod.exe" --remove
6.連接mongodb并進(jìn)行驗證
先打開mongodb安裝目錄下的bin目錄,然后執(zhí)行mongo.exe
show dbs
技術(shù)分享離不開您的支持,您的支持是我源源不斷的動力。
微信
支付寶
轉(zhuǎn)載于:https://my.oschina.net/u/1184659/blog/1556374
總結(jié)
以上是生活随笔為你收集整理的windows安装mongodb(快速简易版)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 顶级IP将迎新作!华纳兄弟官宣重启《指环
- 下一篇: 3000元档超香二代骁龙8旗舰!努比亚Z