In this howto we’ll setup and configure MongoDB server on Ubuntu 14.04 x64 (it’s only available for x64 LTS distributions). To begin we have to setup custom repository:

MONGODB INSTALLATION

Add repo key:

Create apt source.list config:

Update apt repo list and install MongoDB:

MONGODB ACCESS CONFIGURATION

Now let’s setup access to MongoDB.

Run MongoDB shell and switch to admin user:

Create root user and exit the shell:

Enable authentication in MongoDB config and restart MongoDB service:

Test the connection to database with new credentials:

That’s all, your MongoDB is setup.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post Navigation