Mongodb needs some configuration to run. It needs to create this hierarchy /data/db/. Where can I find mongo files? and where do I create this directories?!


Run this command on your terminal:

sudo mongod --dbpath /var/lib/mongodb/

It will set the db path as well as start your mongodb server. You can then go to 

verify your connection. You should get: "It looks like you are trying to access MongoDB over HTTP on the native driver port."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.