You have to set up linux, and also a great internet connection, we'll get on with it how can I download mongodb.
To download mongodb you get by typing the following command in your linux terminal:
wget -c http://downloads.mongodb.org/linux/mongodb-linux-i686-2.4.7.tgz
wget -c http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.4.7.tgz
You can also download through her official website here
Once you do and you can now download installation of mongodb, but you have to extract the file you downloaded with the new way of entering the following command in your terminal.
After that the following directory rename mongodb-linux-x86_64-2.4.7 be mongodb in the following ways
$ mv mongodb-linux-x86_64-2.4.7/ mongodb
Open the file ~/.bashrc and add at the end of the file is the script below
and then save
Running the service
To start the service, type the following command mongodb
To save the database file by default, mongodb will use the/data/db directory, so when we are running mongodb, that directory service must be available, if not, mongodb will issue an error like this.
To connect to mongdb, type the following command