R
R
Rustem Vorozheikin2015-04-20 01:11:19
MongoDB
Rustem Vorozheikin, 2015-04-20 01:11:19

How to start mongo shell?

I am using ubuntu 14.10. Installed mongo 3.0.2.
I try to start the shell with the "mongo" command, to which I get the answer:

MongoDB shell version: 3.0.2
connecting to: test
2015-04-20T01:09:39.216+0300 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-04-20T01:09:39.219+0300 E QUERY    Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed
    at connect (src/mongo/shell/mongo.js:179:14)
    at (connect):1:6 at src/mongo/shell/mongo.js:179
exception: connect failed

I will be very grateful for the answer)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2015-04-20
Syomochkin @mak_sim

First, make sure you have the Mongo server running at all. Just try to telnet to port 27017.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question