Linux under MongoDB 3.2.5 stand-alone version installation

Source: Internet
Author: User

mongodb3.0.x Installation Tutorial Online A lot, here is mainly about the installation of 3.2.5

Linux ISO in \\10.10.10.1\ShareDoc\User\yipengzhi\ISO\Centos7.0 this installation does not introduce

MongoDB 3.2.5 installation package in

Linux version: \\10.10.10.1\sharedoc\user\7.0\mongodb-3.2.5-linux-5-23-s.zip

Stand-alone version:

Log in to the CentOS root user

Right-click Open in terminal to turn on a terminal, and then

[Email protected] ~]# Cd/home

Create a folder in the home directory

[Email protected] home]# mkdir MongoDB

Create a Data directory

[Email protected] home]# mkdir data

Create a log directory:

[Email protected] home]# mkdir log

Create a config.conf file

[Email protected] home]# VI config.conf

Systemlog:
Destination:file
Path:/home/mongodb/log/mongod.log
Logappend:true
Storage
Journal
Enabled:true
DbPath:/home/mongodb/data
Directoryperdb:true
Engine:wiredtiger
Wiredtiger:
Engineconfig:
Cachesizegb:1
Directoryforindexes:true
Collectionconfig:
Blockcompressor:zlib
Indexconfig:
Prefixcompression:true
Net
port:27017

If config.file do not want to write on their own, you can copy \\10.10.10.1\ShareDoc\User\luozhitao\ under the config.conf

Copy the MongoDB installation package to Linux

If you don't know how to copy the \\10.10.10.1\ShareDoc\User\luozhitao\Xmanager_4.0.232_ Xiazaiba under Xmanager installed on Windows native (this tool can copy files on window to Linux and can also connect to Linux)

Create a # VI U.txt under the current process to copy the following:

Ulimit-f Unlimited
Ulimit-t Unlimited
Ulimit-v Unlimited
Ulimit-n 64000
Ulimit-m Unlimited
Ulimit-u 64000

: wq! Save

SOURCE U.txt

Unzip the MongoDB installation package

[Email protected] mongodb]# TAR-ZXVF mongodb-linux-x86_64-rhel62-3.2.4.tgz

A mongodb-linux-x86_64-rhel62-3.2.4 (blue) is generated after the decompression, and then the CD goes in

[Email protected] mongodb]# CD mongodb-linux-x86_64-rhel62-3.2.4/bin/

Example from Mongod:

./mongod-f/home/config.conf

At this point Mongod has been up, this way is initiated in a process way, so this command window do not turn off!

Linux under MongoDB 3.2.5 stand-alone version installation

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.