V
V
Vitaly Stolyarov2016-04-23 01:05:10
MongoDB
Vitaly Stolyarov, 2016-04-23 01:05:10

How to connect MongoDB to Cloud9?

mongo installed , but in the terminal I get

MongoDB shell version: 2.6.11
connecting to: test
2016-04-22T22:00:30.535+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2016-04-22T22:00:30.535+0000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed

and at startup, when connected via mongoose, I get
/home/ubuntu/workspace/node_modules/mongoose/node_modules/mongodb/lib/server.js:242                                                        
        process.nextTick(function() { throw err; })                                                                                        
                                      ^                                                                                                    
Error: connect ECONNREFUSED 0.0.0.0:27017                                                                                                  
    at Object.exports._errnoException (util.js:870:11)                                                                                     
    at exports._exceptionWithHostPort (util.js:893:20)                                                                                     
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)

what could be the reason and how to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question