Windows installation MongoDB

Source: Internet
Author: User
Tags mongodb compass

First, resources

Mongo

Https://www.mongodb.com/download-center#community

Romongo Download:

https://robomongo.org/

The following three files, (Mongodb-compass can not be under, this is the management of MONGO with the graphical interface, accustomed to Romongo query, studio3t can learn to use their own)

Install the above software, my local MONGO installed in the D:tools\mongo directory, a new two directory to store data and logs

D:\tools\data\db and D:\tools\data\log

Second, the initialization of the work

To use commands at the command line:

--DBPath D:\tools\data\db connection Script D:\tools\mongo\bin\mongo.exe

Waiting for Connetions on port 27017 indicates successful startup and CTRL + C can be turned off

Connect to the database using a connection script (opens a new command line)

The start database command line appears with the following connector information, the connection is successful

Connect using MongoDB Compass

Romongo Connection

After the main use of Romongo for data query, where three views of the switch

Third, the configuration of MONGO

Configuring MongoDB Services

Create a configuration file located in D:\tools\mongo\mongod.cfg
The specific contents are as follows:

file path:d:\tools\data\log\mongod.logstorage:dbpath:d:\tools\data\db

Installing MongoDB Services

" D:\tools\mongo\mongod.cfg " --install

The command line requires administrator privileges, and the following log information appears without Administrator privileges

Installation Complete log information is as follows:

MONGOBD services can be found in the service.

Start MongoDB Service

Mongodb

Close MongoDB Service

Mongodb

Remove MongoDB Service

C:\mongodb\bin\mongod.  --Remove      

Other information on your own, now you can happily use the MONGO

Reference:

Http://www.runoob.com/mongodb/mongodb-window-install.html

Windows installation MongoDB

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.