1. Download the latest stable version of the installation package.
[Email protected] mongodb]$ wget-c--no-check-certificate https://fossies.org/linux/misc/mongodb-linux-x86_64-3.2.11.tgz
2. Unzip the installation package.
3. Set environment variables.
[Email protected] ~]$ export Path=/home/huey/mongodb/mongodb-linux-x86_64-3.2.11/bin: $PATH
4. Create a Data Catalog.
[Email protected] ~]$ mkdir-p ~/data/db
5. Start the service.
[[email protected] ~]$ mongod--dbpath ~/data/db &[1] 16529[[email protected] ~]$ 2016-11-30t11:01:24.214+0800 I contr OL [Initandlisten] MongoDB starting:pid=16529 port=27017 dbpath=/home/huey/data/db 64-bit host=huey2016-11-30t11 : 01:24.215+0800 i control [Initandlisten] DB version v3.2.112016-11-30t11:01:24.215+0800 I control [ Initandlisten] git version:009580ad490190ba33d1c6253ebd8d91808923e42016-11-30t11:01:24.215+0800 I CONTROL [ Initandlisten] Allocator:tcmalloc ...
6. Run the MongoDB Shell
Mongodb-installing MongoDB on Linux