Linux-nosql's MongoDB

Source: Internet
Author: User

1.mongodb Introduction

2.yum Installation

To build a Yum Source:

Vim/etc/yum.repos.d/mongodb-org-3.0.repo

[mongodb-org-3.0]

Name=monogodb Repository

baseurl=http://repo.mongodb.org/yum/rehat/$releasever/mongodb-org/3.0/x86_64

Gpgcheck=0

Enabled=1

Yum Install omongodb-org

MongoDB related files

/etc/init.d/mongod

/etc/mongod.conf

/var/lib/mongodb

Start mongpdb:

echo Never >/sys/kenel/mm/transparent_hugepage/enabled

echo Never >/sys/kenel/mm/transparent_hugepage/defrag

Vim/etc/security/limits.conf

Mongod Soft Nofile 64000

Mongod Hard Nofle 64000

Mongod Soft Nproc 32000

Mongod Hard Nproc 32000

Service Mongod Start

3.Mongo Connectivity and user management

In this machine you can directly run the command MONGO into the MongoDB shell

If the MongoDB listener port is not the default 27017, you need to add--port when connecting

MONGO--port 27018

MONGO--host 192.168.1.120

MONGO--username--password

4.MONGODB User Management

Linux-nosql's 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.