Install Mongodb on another drive on Windows

Asked

Viewed 125 times

2

I’m trying to install Mongodb in a unit other than "C".

However when trying to use the "Mongo" command in the terminal the following error is returned:

Failed to connect to localhost:27017

The examples I find only speak in "C:". How to configure Mongodb to work in another unit?

I want it this way:

  • E: mongodb programmes
  • E: mongodb data db programs

This is possible or only allows installation on Windows installation drive?

1 answer

2


I managed to install Mongodb.

I created within the folder "mongodb" the folders "logs" and "data/db" and then ran the following command:

e: mongodb bin mongod.exe --logpath "e: mongodb logs server.log" -dbpath "e: mongodb data db" -install programs

In addition to changing the directory, I installed the service "Mongodb" avoiding having to open the ready.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.