Operation 1:mongodb Installation

Source: Internet
Author: User
Tags chmod mkdir mongodb
Installation Instructions

System Environment: Centos-6.3
Installation software: mongodb-linux-x86_64-2.2.2.tgz
Download Address: Http://www.mongodb.org/downloads
Installation machine: 192.168.15.237
Upload location:/usr/local/
Software Installation Location:/usr/local/mongodb
Data storage location:/var/mongodb/data
Log storage location:/var/mongodb/logs

1. Installation:

CD usr/local/
groupadd mongodb
useradd mongodb-g mongodb
cd/usr/local
tar-zxv-f mongodb-linux-x86_ 64-2.2.2.tgz
mv mongodb-linux-x86_64-2.2.2 mongodb
chown-r mongodb:mongodb mongodb
cd MongoDB
mkdir /var/mongodb
mkdir/var/mongodb/data
mkdir/var/mongodb/logs

touch/var/mongodb/logs/log.log
chmod 777-r/var/mongodb/logs/log.log
chmod 777-r/var/mongodb/data

2. Configure boot-up:

VI +/etc/rc.d/rc.local


3. Start the MongoDB test:


4

For MongoDB start from file, MongoDB slow query start, see address:

http://blog.csdn.net/terry_water/article/details/46827415



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.