天天看點

mongodb windows install

mongodb windows install

下載下傳  mongodb-win32-x86_64-2008plus-ssl-3.4.5-signed.msi

1.安裝install 

mongodb windows install
mongodb windows install
本人安裝位置 D:\soft\MongoDB
mongodb windows install
2. install 指令

mongod.exe --logpath D:\soft\MongoDB\data\log\mongodb.log --logappend --dbpath D:\soft\MongoDB\data\db --directoryperdb --serviceName MongoDB -install      

出現 就算成功了

2018-03-21T14:27:57.734+0800 I CONTROL  [main] Trying to install Windows service 'MongoDB'
2018-03-21T14:27:57.736+0800 I CONTROL  [main] Error connecting to the Service Control Manager: 拒絕通路。 (5)
2018-03-21T14:32:29.834+0800 I CONTROL  [main] ***** SERVER RESTARTED *****
2018-03-21T14:32:30.336+0800 I CONTROL  [main] Trying to install Windows service 'MongoDB'
2018-03-21T14:32:30.560+0800 I CONTROL  [main] Service 'MongoDB' (MongoDB) installed with command line 'D:\soft\MongoDB\Server\3.4\bin\mongod.exe --logpath D:\soft\MongoDB\data\log\mongodb.log --logappend --dbpath D:\soft\MongoDB\data\db --directoryperdb --service'
2018-03-21T14:32:30.560+0800 I CONTROL  [main] Service can be started from the command line with 'net start MongoDB'      

出現 以下錯誤是權限問題,在系統  C:\Windows\System32 下右擊 cmd.exe 以管理者身份啟動

2017-07-07T17:01:55.339+0800 I CONTROL  [main] Error connecting to the Service Control Manager: 拒絕通路。 (5)      

在執行intall 指令

3.啟動 

net start MongoDB
net stop MongoDB      
mongodb windows install

4.進入用戶端

mongodb windows install

5.test

> db.runoob.insert({x:10})
WriteResult({ "nInserted" : 1 })      
mongodb windows install

6.使用 Robomongo 0.9.0 可視化 工具檢視

mongodb windows install

捐助開發者 

在興趣的驅動下,寫一個

免費

的東西,有欣喜,也還有汗水,希望你喜歡我的作品,同時也能支援一下。 當然,有錢捧個錢場(支援支付寶和微信 以及扣扣群),沒錢捧個人場,謝謝各位。

個人首頁

http://knight-black-bob.iteye.com/
mongodb windows install
mongodb windows install
mongodb windows install

 謝謝您的贊助,我會做的更好!

繼續閱讀