mongodb windows install
下載下傳 mongodb-win32-x86_64-2008plus-ssl-3.4.5-signed.msi
1.安裝install
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZlBnauMWZjBjNllTY3QTNjNzMzkTOhRGNwgDNmZTNxEzY4QjMfdWbp9CXt92Yu4GZjlGbh5SZslmZxl3Lc9CX6MHc0RHaiojIsJye.jpeg)
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
4.進入用戶端
5.test
> db.runoob.insert({x:10})
WriteResult({ "nInserted" : 1 })
6.使用 Robomongo 0.9.0 可視化 工具檢視
捐助開發者
在興趣的驅動下,寫一個
免費
的東西,有欣喜,也還有汗水,希望你喜歡我的作品,同時也能支援一下。 當然,有錢捧個錢場(支援支付寶和微信 以及扣扣群),沒錢捧個人場,謝謝各位。
個人首頁:
http://knight-black-bob.iteye.com/謝謝您的贊助,我會做的更好!