安裝MongoDB 於 Windows
對於Windows系統的支援
1.此系統根據官方說法,可支援:
- Windows XP(需Mongo Version 2.2以後)
- Windows Server 2008 R2
- Windows 7
重要:若想安裝於Windows Server 2008 R2 or Windows 7,請先安裝a hotfix to resolve an issue with memory mapped files on Windows.
在此僅示範系統:Windows Server 2008 R2 64-bit
!:官方文件說明,請盡量抓取最新的Mongo版本。
1.檢查Windows系統版本,請以管理員身分 開啟cmd輸入以下指令
- wmic os get osarchitecture
2.下載MongoDB
3.解壓縮 下載好的檔案
- 官方建議 將資料夾解壓縮至 C:\
4.移動Mongo資料夾至其他位置(可以自己選擇位置)
- 以管理員身分 開啟cmd輸入以下兩個指令
cd \ move C:\mongodb-win32-* C:\mongodb
By-藍小伙