Setup MongoDB Database - charleshross/soarin GitHub Wiki
This guides assumes you have already installed a fresh copy of Debian Linux Wheezy 64bit (https://www.debian.org/distrib/netinst) on your server or virtual machine.
- Words
like thisare commands to run on your server or virtual machine. - The 'pico' text editor used in this documentation comes with Debian and is super simple to use. To open a file just type
pico [location of your file]. Use arrow keys to navigate, and in order press "[CTRL]+[X], [Y], [ENTER]" to save file changes.
To begin installing, SSH into your Linux Debian server as root.
Install MongoDB
Instructions adapted from http://docs.mongodb.org/manual/tutorial/getting-started/
Import the public key for MongoDB packages
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
Create a sources list for mongodb
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
Update aptitude for new packages
apt-get update
Install the MongoDB packages
apt-get install mongodb-org=2.6.0 mongodb-org-server=2.6.0 mongodb-org-shell=2.6.0 mongodb-org-mongos=2.6.0 mongodb-org-tools=2.6.0
Start MongoDB
/etc/init.d/mongod start
Verify MongoDB started by checking log file
pico /var/log/mongodb/mongod.log
Stop MongoDB
/etc/init.d/mongod stop
Restart MongoDB
/etc/init.d/mongod restart
Finished!