MongoDB
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:
- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat-tarball/
- https://docs.mongodb.com/manual/administration/configuration/#std-label-base-config
Steps
- 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
- 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
anddbPath
. These must be directories that you own. Other than that, they can be anything you choose. - 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.
- Start the mongo client: "/path/to/bin/mongo".
- Once you are done, you can stop the server with "/path/to/bin/mongod --config /path/to/mongod.conf --shutdown".