- curl -o http://downloads.mongodb,org/linux/mongodb-linux-i686-2.6.3.tgz
- tar -zxvf mongodb-linux-i686-2.6.3.tgz
- mkdir -p mongodb
- cp -R -h mongodb-linux-i686-2.6.3/ mongodb (to create the target folder)
mkdir -p /data/db
Create a mongodb.conf file and save it in /etc folder.
Create a folder named "mongodb" in /var/log
Then use below command
mongod --config /etc/mongodb.conf
After then
enter mongo in terminal to work on mongodb.