NOSQL MONGO Getting Started learning notes-MongoDB installation (i)

Source: Internet
Author: User

The work of the hand is not very busy, so to learn to study for a long time like contact with MongoDB, but the previous period of work time are more. The records are here for future reference.

Environment:

Centos 7 64-bit

Begin:

1. Download Mongo:wget on the websitehttps://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.0.3.tgz

Tar-zxvfmongodb-linux-x86_64-rhel70-3.0.3.tgz 

There are 13 executable programs under the bin file.

Where./mongo is the command-line program,./mongod is the startup program, first run Mongod

./mongod error exception in initandlisten:29 Data directory/data/db not found., terminating

Create a new partition/data/db the recommended setting is 256KB or smaller, I'll ignore it first. (^_^ is wanring anyway,)

2. Run./mongod, prompt to run successfully waiting for connections on port 27017

Default Listener 27017 Port

3. Run down./mongo (use SSH in the previous step remember to use the nohup or re-open a terminal)

The command-line mode is now started.

Postscript:

Because it is only learning, so temporarily did not join the boot boot or service.

NOSQL MONGO Getting Started learning notes-MongoDB installation (i)

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.