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