I'm trying to run Mongo from the Command-Line: What's wrong? (I've IIS on localhost:80). And Apache on port 8080. Are there any issues with this?
C:\MONGO\Project1\mongo\bin>mongo --port 27017 MongoDB shell version: 2.0.3 connecting to: 127.0.0.1:27017/test Sat Mar 10 16:16:45 Error: couldn't connect to server 127.0.0.1:27017 shell/mong o.js:86 exception: connect failed
Open up your command prompt and type mongod to start the MongoDB server.
I found that when I got this error it wasn't because I didn't have my default db path set up. It was because I was trying to run mongo.exe before running mongod.exe.
Did you create the default db path?
It defaults to "/data/db
directory (or c:\data\db
on Windows)"
Source: http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With