Setting up MongoDB

Setup windows (chaos)

Found instructions on stack overflow here.

Created data folder and symlink to the mongodb bin folder for version 3.4.

Added the bin folder for mongodb to my system path.

Created a new config file initially containing:

systemLog:
 destination: file
 path: c:\data\log\mongod.log
storage:
 dbPath: c:\data\db\

Started the service and so far all looks ok.

Need to create an SSL cert and set up authentication soon. On my local network only, but there are anough machines here that I’d rather not get burned by a compromised raspberry pi eating my database.

Verified that mongo.exe does see the database.

Temporarily adding ‘bindIp’ instead to force only 127.0.0.1 to be accepted.

Created a local PEM key to use to secure the link. Probably need to delve deeper here…I have the feeling that before I’m done I’ll want to create a local CA and install its root certs into my local certificate stores as trusted.

Digression…local CA

Found a page that looks reasonable here.

Basics are in place. Still need to sign the secondary certs and test.

 

Leave a Reply

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