Pymongo keeps refusing the connection at 27017

前端 未结 9 705
灰色年华
灰色年华 2020-11-29 04:23

I am trying to run a simple connection to pymongo but it keeps returning that the connection was refused

Here is what I tried:

>>>from pymon         


        
9条回答
  •  有刺的猬
    2020-11-29 05:13

    It looks like you might not be running the MongoDB server. One thing that frequently trips me up is that if the server was shut down uncleanly, it will refuse to start up again until you remove the mongod.lock file from the data directory.

提交回复
热议问题