I am learning MongoDB and when I am trying to start mongoDb, it throws me the error below:
C:\Users\Mahadev>mongo
MongoDB shell version: 3.2.3
connecting to: test
2016-02-18T14:45:06.028+0530 W NETWORK [thread1] Failed to connect to 127.0.0.1
:27017, reason: errno:10061 No connection could be made because the target machi
ne actively refused it.
2016-02-18T14:45:06.029+0530 E QUERY [thread1] Error: couldn't connect to ser
ver 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:224:14
@(connect):1:6
exception: connect failed
How do I solve the error?