Scripts for setting up, configuring, running, and monitoring MongoDB.

charlesreid1 d736a70704 Update 'LICENSE' 4 weeks ago
LICENSE Update 'LICENSE' 4 weeks ago update notes 1 month ago updating config. 1 month ago update notes 1 month ago updating run instructions 1 month ago adding more init notes 1 month ago


Scripts for setting up, configuring, securing, running, and monitoring MongoDB.

Running on Debian-based server.

Setting up

installation page of documentation

installation page 2

sudo apt-get remove mongodb mongodb-server
sudo apt-key adv --keyserver hkp:// --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org


configuration covers MongoDB config files, important options, setting port and address to bind to.

27017 - default port for mongo



use a management (virtual) LAN to communicate. mongodb assumes the network is insecure, so keep things locked down at the network level, not at the mongodb level.



mongodb installation instructions tell you how to run it. ubuntu installation instructions: running

basically, run:

sudo service mongod start

basic usage includes CRUD operations.



We refer to monitoring in two senses:

  • Monitoring the status of MongoDB using a logging tool
  • Using MongoDB to store monitoring data


Grease the Skids

We want to make it as easy as possible to set up monitoring and instrumentation for new stuff.

So, make it easy to monitor new things.