The installation of MongoDB 2.6.6 under WINDOW10

Source: Internet
Author: User

First of all thanks to Bo Aberdeen know, followed by the WIN10 of the Cow fork, compatibility is good.

First, download the MongoDB 2.6.6 installation package, unfortunately, the official website charges. But fortunately, I am a good person: http://pan.baidu.com/s/1qXzCzIc

Then it is double-click, install and install .... Installation type, select "Typical" until finish.

However, there are no eggs to use ... Just the equivalent of extracting a bin file. At this point, your C-drive has a folder C:\Program Files\mongodb 2.6 Standard

You can then create the location where you store the MongoDB database and logs. I put it on the D-plate.

Database storage location D:\mongodb\data

Log file storage location D:\mongodb\log\log.txt (log txt file needs to be built beforehand)

Although there are now multiple EXE files under the C:\Program Files\mongodb 2.6 Standard\bin folder, it is closed immediately when you double-click.

So we're going to use the command line.

To ensure a one-time installation, we need to execute command line win+x with the "admin" role Select a.

Execute command

Cd:c:\program FILES\MONGODB 2.6 Standard\bin

Press ENTER

Mongod.exe--dbpath d:\mongodb\data--logpath d:\mongodb\log\log.txt--logappend--directoryperdb--servicename MongoDB--servicedisplayname MongoDB--install

Note: DBPath is followed by the location of the database storage LogPath followed by the location of the log file ServiceName is the service name Servicedisplayname is the service reality name, personal advice set to the same, Lest you want to delete the service later forget ServiceName is what. After the execution if not error, you can go to the service inside to see, this time should have added a service, if the error to D:\mongodb\log\log.txt view errors, and then find the corresponding solution.

net start MongoDB

Start your service

sc config Mongodb=auto

Set up service boot up

And we checked to see if it was really successful.

CD C:\Program FILES\MONGODB 2.6 standard

CD bin

Mongo

Show DBS;

Myself:

At this point, the installation is successful.

The installation of MongoDB 2.6.6 under WINDOW10

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.