MongoDB VPS Hosting Install Instructions
MongoDB is available for install in the CentOS, Debian, Fedora, and Ubuntu templates on our VPS Hosting packages. You would need to use the quickinstaller script to install this as MongoDB does not officially support OpenVZ. It can be installed by running the following as root in your VPS: (the quickinstaller and MongoDB is not compatible on our Managed VPS plans)
sh /usr/sbin/quickinstaller.sh
Choose option "Install MongoDB" from the presented menu . The install process will run through updating your VPS, and then install MongoDB with all the default settings. After installation you can run the following to access MongoDB:
mongo
You will be presented with the following:
MongoDB shell version: 1.8.1 connecting to: test >
To test to make sure its working for you, try the following:
db.foo.save( { First : 1 } )
db.foo.find()
If everything is working, then you should get a reply back with something similar to: { "_id" : ObjectId("4de7d23c050fc9721afacd11"), "First" : 1 }
If you received something similar, then you just created your first document with MongoDB. From here you can create more documents in MongoDB. If you need more asisstance with how to use MongoDB you can find the MongoDB manual here: MongoDB Manual