apt-get updateapt-get install mongodb
vim /etc/mongodb.conf
service mongodb stopservice mongodb start