Site icon Web Niraj

AWS: Install MongoDB 3.x on Ubuntu 14

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.

See the gist on github.

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:

See the gist on github.

Which will result in the following output:

Exit mobile version