1

I have installed MongoDB shell version v3.4.9 in windows 7 and when I type mongo in cmd then I get the following error

error see the screenshot

Please tell me how to resolve it.

I am a beginner in MongoDB.

1 Answers1

0

Run a netstat -an from a Console window. Then locate the default MongoDB port 27017 in the output. If it's there you may have a firewall issue.

If it isn't then MongoDB is not running or not listening on the default port. In this case you want to either start the windows service if you've installed MonggDB as a service or manually run mongod. The following links provide some guidance around that:

How to install mongoDB on windows?

How do I start Mongo DB from Windows?

dnickless
  • 10,733
  • 1
  • 19
  • 34