I can't connect to server 127.0.0.1

1,452 views
Skip to first unread message

Kenley Tan

unread,
Apr 23, 2012, 3:01:51 AM4/23/12
to mongodb-user
Hi guys, I keep getting this error.
Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
Could you guys help me out?
Thanks

Andreas Jung

unread,
Apr 23, 2012, 4:04:27 AM4/23/12
to mongod...@googlegroups.com
Either mongod is not running or your client is connecting from
a different machine or your connections are somehow blocked through
a firewall.

-aj

--
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 T�bingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


gregor

unread,
Apr 23, 2012, 4:09:19 AM4/23/12
to mongod...@googlegroups.com
If you are getting this

Mon Apr 23 09:07:16 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91
exception: connect failed

You either need to start mongod, or if it is running on a different port start the shell with the --port argument. 

Kenley Tan

unread,
Apr 23, 2012, 4:30:46 AM4/23/12
to mongodb-user
I'm not familiar with what you are saying, so could you please show
some specific instructions. Also, I tried using mongod, but it won't
start.

On Apr 23, 4:04 pm, Andreas Jung <andr...@andreas-jung.com> wrote:
> Either mongod is not running or your client is connecting from
> a different machine or your connections are somehow blocked through
> a firewall.
>
> -aj
>
> Kenley Tan wrote:
> > Hi guys, I keep getting this error.
> > Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
> > exception: connect failed
> > Could you guys help me out?
> > Thanks
>
> --
> ZOPYX Limited           | zopyx group
> Charlottenstr. 37/1     | The full-service network for Zope & Plone
> D-72070 T bingen        | Produce & Publishwww.zopyx.com          |www.produce-and-publish.com

Andreas Jung

unread,
Apr 23, 2012, 5:55:22 AM4/23/12
to mongod...@googlegroups.com
Did you read the basic installation documentation? Did you start 'mongod'?

-aj

www.zopyx.com | www.produce-and-publish.com

Adam C

unread,
Apr 23, 2012, 6:07:58 AM4/23/12
to mongod...@googlegroups.com
You can also have a look at the quickstart docs here for some tips:


Adam

Archas

unread,
Apr 26, 2012, 9:05:40 PM4/26/12
to mongod...@googlegroups.com
Linux:
# cd /prefix/mongodb/bin
# ./mongod -port 20000
# netstat -na|grep 20000
tcp        0      0 0.0.0.0:20000           0.0.0.0:*               LISTEN      
--- Ok,It's started.  ---

# ./mongo -port 20000
> show dbs;
> ...............................

OK?

在 2012年4月23日星期一UTC+8下午3时01分51秒,Kenley Tan写道:

Scott Hernandez

unread,
Apr 27, 2012, 10:46:43 AM4/27/12
to mongod...@googlegroups.com

Yep: okay.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/gNhzjZ1fhfIJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
Reply all
Reply to author
Forward
0 new messages