Linux Installation MongoDB

Source: Internet
Author: User

wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.9.tgz

Extract

Tar xvf mongodb-linux-x86_64-2.6.9.tgz

Change Folder name

MV Mongodb-linux-x86_64-1.8.5/mongodb

Move to the Data directory

MV Mongodb/data

New Data File storage directory

mkdir-pv/data/mongodb/db

Create a file storage directory for MongoDB logs

Mkdir-pv/data/mongodb/logs

Start MongoDB

/data/mongodb/bin/mongod--dbpath=/data/mongodb/db--logpath=/data/mongodb/logs/mongodb.log

Show:

.

Tue Feb 11:29:19 [Initandlisten] waiting for connections on port 27017
Tue Feb 11:29:19 [websvr] Web admin interface listening on port 28017

MongoDB default connection port is 27017.


This article is from the "Bulajunjun" blog, make sure to keep this source http://5148737.blog.51cto.com/5138737/1631972

Linux 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.