3.4 of: Http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-v3.4-latest-signed.msi?_ga= 2.7045623.410933966.1512521590-461885398.1512521590
Download page for official website: Https://www.mongodb.com/download-center?jmp=nav
Downloaded in the official website is always installed to half stuck, see a big explanation why:
So I'm still using 3.4.
To start the configuration:
The first step:
Double-click File installation, I installed the custom installation in the D-Disk MongoDB folder.
Step Two:
Create a new two folder:
D:\mongodb\data\db
D:\mongodb\log
Create a new Mongodb.log file in the log folder. ( Create a mongo.txt file, then open it, click "Save As", change the file type below to "all types", and change the file name to be called Mongo.log.) the food is too much to be done.
Step Three:
Execute command under the installation directory D:\mongodb\bin folder:mongod--dbpath "D:\mongodb\data\db"--logpath "D:\mongodb\logs\log.txt"--install- ServiceName "MongoDB"
Don't miss a single space.
Without an error, you can start MongoDB, execute the command:net start MongoDB
Enter http://localhost:27017/in the Browser
will appear
You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number
Indicates that the service has started.
It's OK to be here.
Note: Boot from startup, can be manually turned off (computer (right) | Management | Service), can command line net start MongoDB start.
Reference Links:
Https://www.cnblogs.com/xuanmanstein/p/7991589.html
Https://www.cnblogs.com/hongwest/p/7298257.html
The installation of MongoDB