新手问题 ruby china 源码运行出错,mongodb 连接不上。。。

afayear · June 24, 2015 · Last by afayear replied at June 25, 2015 · 1782 hits

localhost:ruby-china admin$ ./bin/setup

Checking Package Dependencies...

MongoDB 2.0+ [Yes] Redis 2.0+ [Yes] Memcached 1.4+ [Yes]

ImageMagick 6.5+ [Yes]

Installing dependencies

The Gemfile's dependencies are satisfied

Configure

Your MongoDB host (default: 127.0.0.1:27017):

Your Redis host (default: 127.0.0.1:6379):

Seed default data...rake aborted! Moped::Errors::ConnectionFailure: Could not connect to a primary node for replica set #]>

各种搜都没有解决,谢谢了。

Could not connect to a primary node for replica set

http://stackoverflow.com/questions/22800602/mongo-db-could-not-connect-to-a-primary-node-for-replica-set http://stackoverflow.com/questions/23439343/cannot-connect-to-mongodb-errno61 配置了 mongo 的路径,然后建立 db,试着试着就好了。能运行了。下面开始,一点点扣代码了。 非常感谢。ruby-china 真不错,对于新手来说。

You need to Sign in before reply, if you don't have an account, please Sign up first.