mongodb windows install

mongodb windows install

 

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

 

1. Install install 



 

My installation location D:\soft\MongoDB



 

2. install command

 

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

 

 

It appears even if it succeeds

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: Access Denied. (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'

 

The following error is a permission problem, right-click cmd.exe under the system C:\Windows\System32 and start it as an administrator

 

2017-07-07T17:01:55.339+0800 I CONTROL [main] Error connecting to the Service Control Manager: Access Denied. (5)

While executing the intall command

 

 

3. Start 

 

net start MongoDB
net stop MongoDB

 



 

 

4. Enter the client



 

 

5.test

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

 



 

 

6. Use the Robomongo 0.9.0 visualization tool to view



 

 

 

 

 

 

 

 

 

 

 

 

 

 

Donate to developers 

Driven by interest, I write 免费something with joy and sweat. I hope you like my work and can support it at the same time. Of course, if you have money to support a money field (support Alipay, WeChat, and the buckle group), if you have no money to support a personal field, thank you.

 

Personal homepage : http://knight-black-bob.iteye.com/



 
 
 Thank you for your sponsorship, I will do better!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326150200&siteId=291194637