installation of (Windows) Mongodb3x+robomongo

Source: Internet
Author: User
Tags robomongo

At the beginning of the installation of the time still feel very simple really loaded when the information on the Internet is uneven again to organize a installation method

Separately to download MongoDB and Robomongo The author here is MONGO 3.0.5 Robomongo is 0.8.5, respectively, has been confirmed after the installation of Robomongo first without tube

First MongoDB needs to create its own database manually

I am here to create a MongoDB folder in the D disk and then create the data folder under it

Create the DB and log folders under Data

At this point, create an empty. log file under Log to hold the log files generated by the MONGO runtime

Next let's go back to MongoDB's installation directory under bin

Holding down SHIFT and then pressing the right mouse button will open a command window here

Tap Mongod--dbpath D:\mongodb\data\db in the command window to start the MONGO service you can access it without changing the port number

http://localhost:27017 to confirm the service startup

Press MONGO in the command window to access the database (the relevant command of the database to find out more about it) use Crtl+c to exit the database

The next thing we want to do is set MongoDB as a service so that it can boot up or we'll have to open it manually every time.

First create a new file under D:\mongodb mongo.config

Add dbpath=d:\mongodb\data\db logpath=d:\mongodb\log\mongo.log in config as

Save after exiting (config file can also add more parameters of its meaning usage can be self-search to understand that there is no more to say)

Then enter the command line in the bin directory

Mongod--logpath "D:\mongodb\data\log\log.log"--logappend--dbpath "D:\mongodb\data\db"--directoryperdb--install

Press ENTER after the successful registration of a MONGO service will start at the time of self-initiated at the command line input services.msc will see the process in the process

In this way, the installation of MongoDB is also completed and can start the service on its own at boot time.

You can delete the registered MONGO service by entering SC Delete at the command line.

Then just open the command line in the bin directory to enter MONGO

You can go to the database and open the Robomongo create a connection to the graphical interface operation database

This installation is basically done

installation of (Windows) Mongodb3x+robomongo

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.