Errno 10061 : No connection could be made because the target machine actively refused it ( client - server )

后端 未结 14 693
無奈伤痛
無奈伤痛 2020-11-28 11:11

I have a problem with these client and server codes, I keep getting the [Errno 10061] No connection could be made because the target machine actively refused it

14条回答
  •  迷失自我
    2020-11-28 11:25

    Hint: actively refused sounds like somewhat deeper technical trouble, but...

    ...actually, this response (and also specifically errno:10061) is also given, if one calls the bin/mongo executable and the mongodb service is simply not running on the target machine. This even applies to local machine instances (all happening on localhost).

    Always rule out for this trivial possibility first, i.e. simply by using the command line client to access your db.

    See here.

提交回复
热议问题