Failed to connect to server localhost:27017

Mongoose default connection error: MongoError: failed to connect to server [loca
lhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]

i got this error while i try to connect mongo db in windows