There is a point to this story, but it has temporarily escaped my mind...
Contact Me MyFaceBook MyLinkedIn MyGitHub MyTwitter

Install MongoDB

On Windows

  1. Open MongoDB Server in a web browser.
  2. Click on the link for the Windows 64-bit or 32-bit MSI for the “Production Release”.
  3. Extract MongoDB ZIP file to C:\Program Files\MongoDB
  4. Make data directory if it doesn't already exist mkdir C:\data
  5. Start MongoDB one time to verify everything is good.
    C:\Program Files\MongoDB\bin\mongod --dbpath c:\data
  6. Create MongoDB Configuration File
    echo logpath=C:\Program Files\MongoDB\mongod.log > "C:\Program Files\MongoDB\mongod.cfg"
    echo logappend=true >> "C:\Program Files\MongoDB\mongod.cfg"
    echo dbpath=C:\data >> "C:\Program Files\MongoDB\mongod.cfg"
    echo directoryperdb=true >> "C:\Program Files\MongoDB\mongod.cfg"
  7. Install as Service
    C:\Program Files\MongoDB\bin\mongod --config "C:\Program Files\MongoDB\mongod.cfg" --install
  8. On a development machine, change the service to be manual
    sc config mongodb start= demand

On Linux


Copyright © 2022 by Julian Easterling. SOME RIGHTS RESERVED.
Privacy Policy              Terms of Use             

Creative Commons License
Except where otherwise noted, content on this site is
licensed under a Creative Common Attribution-Share Alike 4.0 International License.

All of the opinions expressed on this website are those of Julian Easterling and
do not represent the views of any of my current and previous clients or employers in any way.

If you notice an error on the site or content that has not been properly attributed, bring
it to my attention using the contact page and I will endeavor to fix it as soon as I can.

I accept no responsibility or liability for any damages incurred by following any of
my advice or by using any of the information on my site or of those sites that I link to.