When I type the command 'rails s', I got a problem.
Closed this issue · 0 comments
When I type the command 'rails s',I got the following problem;
[root@localhost rest-oauth2-server-master]# ./script/rails s
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in block in require': iconv will be deprecated in the future, use String#encode instead. => Booting WEBrick => Rails 3.0.5 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/local/lib/ruby/gems/1.9.1/gems/mongo-1.3.0/lib/mongo/connection.rb:494:in
connect': Failed to connect to a master node at localhost:27017 (Mongo::ConnectionFailure)
from /usr/local/lib/ruby/gems/1.9.1/gems/mongo-1.3.0/lib/mongo/connection.rb:632:in setup' from /usr/local/lib/ruby/gems/1.9.1/gems/mongo-1.3.0/lib/mongo/connection.rb:101:in
initialize'
from /usr/local/lib/ruby/gems/1.9.1/gems/mongoid-2.0.0.beta.20/lib/mongoid/config.rb:284:in new' from /usr/local/lib/ruby/gems/1.9.1/gems/mongoid-2.0.0.beta.20/lib/mongoid/config.rb:284:in
_master'
from /usr/local/lib/ruby/gems/1.9.1/gems/mongoid-2.0.0.beta.20/lib/mongoid/config.rb:107:in master' from (eval):2:in
master'
What should I do to solve the problem?
Thanks.