Install and configure MongoDB 1.6.5 In ubuntu 10.10

Source: Internet
Author: User
MongoDB binary installation and configuration

MongoDB 1.6.5 x64

Ubuntu 10.10x64

 

Download

Http://www.mongodb.org/downloads
Linux 64-bit is a compiled package, which can be decompressed

 

Unzip and install

Decompress the package to/usr/local/mongodb-1.6.5 and link/usr/local/MongoDB.


Shell code
  1. $ Tar-zxvf mongodb-linux-x86_64-1.6.5.tgz
  2. $ Sudo MV mongodb-linux-x86_64-1.6.5/usr/local/mongodb-1.6.5
  3. $ Sudo ln-S/usr/local/mongodb-1.6.5/usr/local/MongoDB

 

Configure users and directories

Shell code
  1. $ Sudo useradd-r MongoDB
  2. # Log File Path
  3. $ Sudo mkdir/var/log/MongoDB
  4. # Data file path
  5. $ Sudo mkdir/var/lib/MongoDB
  6. $ Sudo chown MongoDB/var/lib/MongoDB

 

 

Use the configuration file

Please download the configuration file here. The automation corner is not complete yet. Do not use it for the moment.

Https://github.com/lanvige/mongodb-conf


Shell code
  1. $ Sudo CP MongoDB/etc/init. d/
  2. $ Sudo chmod + x/etc/init. d/MongoDB
  3. $ Sudo CP MongoDB. CONF/etc/

 

Enable and disable monogodb

Shell code
  1. $ Sudo/etc/init. d/MongoDB start
  2. $ Sudo/etc/init. d/MongoDB stop

 

 

The following information indicates that the database is successfully installed.

* Starting database MongoDB [OK]

Start

Shell code
  1. $ Sudo update-rc.d MongoDB ults

 

Refer:
Http://blog.lxneng.com /? P = 54
Http://www.mongodb.org/pages/viewpage.action? Pageid = 20742427

 

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.