IT

Add Mongo’s bin folder to the Path Environment Variable

You need to add Mongo’s bin folder to the Path Environment Variable. Here’s how on Windows 10:

  1. Find your bin folder.

If you’re not sure where it is, it’s probably in C:\Program Files\MongoDB\Server\3.4\. It should look like this:

enter image description here

  1. Copy the path to the bin folder, this should be C:\Program Files\MongoDB\Server\3.4\bin
  2. Press win, type env, Windows will suggest “Edit the System Environment Variables”, click that.
  3. On the Advanced tab, click “Environment Variables”

enter image description here

  1. With the Path variable highlighted, click Edit:

enter image description here

  1. Click “New”
  2. Paste your path to the bin folder. Make sure it ends with a \ like so:

enter image description here

  1. Press “OK”, “OK”, “OK”

Now you should be able to run mongod and mongo from anywhere in a command window.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s