MongoDB installed on the WINDOWS64

Source: Internet
Author: User
Tags install mongodb

1. Download 64-bit: Mongodb-win32-x86_64-enterprise-windows-64-2.6.4-signed.msi

2. Installation directory: Install the app under this directory: C:\MongoDB\

3. New directory: C:\MongoDB\data\db and C:\MongoDB\data\log

4. Install MongoDB: Enter cmd command interface operation

CD C:\MongoDB\bin

Mongod-dbpath "C:\MongoDB\data\db"

5. Test Connection

Open a new CMD window, enter the MongoDB bin directory, enter MONGO or Mongo.exe, the following message shows that the test passed, at this time we have entered the test database. Enter exit or CTRL + C to exit.

6, when the Mongod.exe is closed, Mongo.exe can not connect to the database, so every time you want to use MONGODB database to open the Mongod.exe program, so it is more troublesome, at this time we can install MongoDB as a Windows service. Or run cmd, go to the Bin folder and execute the following command

Console execution Command:c:\mongodb\bin>

Mongod--dbpath "C:\MongoDB\data\db"--logpath "C:\MongoDB\data\log\MongoDB.log"--install--servicename "MongoDB"

Here--mongodb.log is the start of the log file,--servicename "MongoDB" service named MongoDB.

Then start MongoDB service > c:\mongodb\bin>net start MongoDB

7. Shutting down services and deleting processes

> C:\mongodb\bin>net Stop MongoDB (Close service)

>c:\mongodb\bin>mongod--dbpath "C:\MongoDB\data\db"--logpath "C:\MongoDB\data\log\MongoDB.log"--remove-- ServiceName "MongoDB"

(Delete, note not--install.)

installation is so simple. You can then test by command. Follow-up will record the common commands you have learned.

Make a little progress every day and always keep a record of him.

MongoDB installed on the WINDOWS64

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.