centos6.5 86_64 on the installation of MongoDB

Source: Internet
Author: User
Tags mongodb

MongoDB is currently the most popular document-based database and one of the representatives of the NoSQL Legion, but the new version of PostgreSQL recently released claims to support NoSQL features and has better performance than MONGO, and interested friends can go and have a look at it and not discuss it here.


To Download the installation package:

wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.5.tgz

Extract:

Tar-xvzf mongodb-linux-x86_64-2.6.5.tgz

renamed :

MV mongodb-linux-x86_64-2.6.5 MongoDB

To set the database directory :

CD MongoDB && mkdir data

To start MongoDB
, the 64-bit binary version is not compiled, and MongoDB uses the 27017 port by default:

./usr/local/mongodb/bin/mongod-dbpath=/usr/local/src/mongodb/data-logpath=/usr/local/src/mongodb/mongo.log

Connection MONGO:

./usr/local/src/mongodb/bin/mongo

Well, to here has completed MONGO installation, into the MONGO command line mode, the next article will study MONGO master-slave configuration ~

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.