If you’re running the default Ubuntu 14 LTS server on AWS, you’ll find that the package manage will only install MongoDB v2.x. However, you can install the latest version by updating apt-get
using this tutorial, allowing you to use install the Parse API Server.
Installing MongoDB
To install the latest version of MongoDB on your Ubuntu instance, run the following script as root / sudo. This will update the apt-get package manager to access the official MongoDB repository and install the latest version of the software.
Once MongoDB is installed, the service will automatically be started. You can verify this by running the following command:
service mongod status
The command line will output something similar to the following it was successfully started:
Using MongoDB
To start using MongoDB, you can issue commands like the below examples:
Which will result in the following output:
[…] MongoDB version v2.6.x or v3.0.x (tested with v3.0.9) […]
Thanks for this tutorial, its very clear. One question: If I import db from Parse to Mongodb, does this action will remove my parse db from host or it will stay there?
If you Import or Migrate your data away from Parse, it will still be available on Parse until you manually delete it (or until the service closes down in Jan 2017).
Thanks.