1. Download
Https://www.mongodb.com/dr/fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.2.10.tgz/download Download the installation package
2. Unzip
Tar zxvf mongodb-linux-x86_64-rhel62-3.2.10.tgz
3. Configure the Boot file
mkdir/usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/data/db creating a data file directory
Touch /usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/logs Creating log Files
VI Mongodb.config Creating a startup profile
dbpath=/usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/data/db Data File directory
Fork=true Background Boot
Logpath=/usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/logs The log directory must be set up using background boot
Logappend=true Logging in append form
port=27017 Port
Save
4. Start and close
/usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/bin/mongod-f Mongodb.config & Guardian Process
/usr/local/mongodb/mongodb-linux-x86_64-rhel62-3.2.10/bin/mongo into the MongoDB console
Kill-9 pid off
Db.shutdown () off
Installing MongoDB under Linux