MongoDB

From UMIACS
Jump to navigation Jump to search

Installation

This page outlines the steps required to install MongoDB on a supported workstation.

We are no longer supporting MongoDB due to changes in their licensing a few years ago, but you can install MongoDB as a tarball using the following links:

Steps

  1. Download the right Community Server file from the MongoDB Community download page and place it in a directory you own. For most people this file will be:
    • Version: Current
    • Platform: RedHat / CentOS 7.0
    • Package: tgz
  2. You will need to create a custom mongod.conf configuration file, using the second link above as a guide. The important thing is to set a custom path for systemPath and dbPath. These must be directories that you own. Other than that, they can be anything you choose.
  3. Start the mongo server: "/path/to/bin/mongod --config /path/to/mongod.conf". Since you are using a custom .conf file you will need to specify this when starting/stopping the server.
  4. Start the mongo client: "/path/to/bin/mongo".
  5. Once you are done, you can stop the server with "/path/to/bin/mongod --config /path/to/mongod.conf --shutdown".