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
Just try following commands in given order :
sudo rm /var/lib/mongodb/mongod.lock sudo mongod --repair sudo service mongodb start sudo service mongodb status
That's it now you could see following as output of last command:
mongodb start/running, process 2796