mongo - ruby connection problem

后端 未结 6 1218
无人及你
无人及你 2020-12-24 03:17

I have installed mongo and bson_ext now I have created a .rb file with the following contents ::

require \'rubygems\'
require \'mongo\'

db = Mongo::Connecti         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-24 03:57

    had this happen several times now, and here is the solution that works for me:

    sudo rm /var/lib/mongodb/mongod.lock
    sudo -u mongodb mongod -f /etc/mongodb.conf --repair
    sudo start mongodb
    sudo status mongodb
    

提交回复
热议问题