今天本想玩玩MongoDB,可因工做機上未下載Linux虛擬機,下載多耗時。無奈只能先下載Windows版本耍耍。
不料,Windows在安裝時也有不順。mongodb
地址官網:https://docs.mongodb.com/
如圖。 話說MongoDB windows的安裝包名稱也有意思:mongodb-win32-x86_64-2008plus-ssl-4.0.0-signed.msi 。 咋一看還覺得是WinServer2008專用。windows
安裝時須要注意圖形化界面的安裝選擇,很是很是耗時。。。
詳細安裝步驟比較簡單,見圖便可。測試
下一步須要注意選擇Customspa
本次安裝目錄是:D:\Program Files\MongoDB\Server\4.0\
code
這一步不要勾選「Install MongoDB Compass」 ,這個選擇後會去下載和Compass,很花費時間的!blog
若是須要MongoDB Compass,能夠直接到官網下載,另外安裝。ssl
1.打開cmd,到安裝目錄\bin下執行mongo,進入mongo命令模式。get
> db test > show dbs admin 0.000GB config 0.000GB local 0.000GB >
It looks like you are trying to access MongoDB over HTTP on the native driver port.