Reputation: 11445
I follow exactly the steps described in official tutorial http://www.mongodb.org/display/DOCS/Quickstart+Windows
But when I run application requiring mongodb, the error says "can not connecting to mongo".
greatly appreciate detail steps of how to run one of those mentioned apps in windows.
What I've got so far:
cygwin
node version 0.5 pre
npm version 3.2
mogoose installed
mongo-connect installed
jade installed
express installed
stylus installed
Upvotes: 2
Views: 5183
Reputation: 11538
Run the following as it is:
Open Command line prompt in Windows
Goto your mongodb directory (~/mongodb/bin/) and run the following command:
./mongo --bind_ip localhost:27017
Now it will give you the message that mongo server is running and waiting connections at port 27017.
Now make sure that you keep this window running and open a new windows command line window and run the chat.io using the same node main.js
command
This SHOULD work. Everything seems set now !
Upvotes: 3
Reputation: 10790
I'm guessing the mongo service isn't starting. Did you create some method (such as a batch file, or windows service) that will launch the mongo db?
Upvotes: 1