mongo - ruby connection problem

后端 未结 6 1213
无人及你
无人及你 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:44

    If you're on a Mac and used Brew, restarting the service solved it for me:

    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
    

    You can find this info by running brew info mongodb.

提交回复
热议问题