我的 ruby 应用程序运行良好,直到本周早些时候,系统崩溃了,现在我在页面上收到一条错误消息......
错误消息: 无法连接到 localhost:27017 的主节点(Mongo::ConnectionFailure)
异常类: PhusionPassenger::UnknownError
应用程序根目录: /home/deploy/www/gm-git
系统是这样设置的...
• Ruby on Rails 3.0.8 • Mongoid 2.0.2 • Redis & Resque 用于后台处理
我尝试了以下启动顺序,但没有成功...
/opt/redis/redis-server
/opt/mongodb/bin/mongod --force --logpath /opt/mongodb/bin
rake environment rescue:workers
touch /home/proyectos/gm/test_git/goldenmile
我已经更新了很多次,例如
/opt/redis/redis-server
/opt/mongodb/bin/mongod --fork --logpath /opt/mongodb/bin
/opt/mongodb/bin/mongod --repair
rake environment rescue:workers
touch /home/proyectos/gm/test_git/goldenmile
但是我在终端中收到错误消息,例如
/opt/mongodb/bin/mongod --start
ERROR: unknown option start
/opt/mongodb/bin/mongod --status
ERROR: unknown option status
/opt/mongodb/bin/mongod start
Invalid command: start
/opt/mongodb/bin/mongod/ --logpath /opt/mongodb/bin
-bash: /opt/mongodb/bin/mongod/: Not a directory
/opt/mongodb/bin/mongod/ --logpath /opt/mongodb/bin/mongod/
-bash: 2b.: command not found
/opt/mongodb/bin/mongod/ --logpath /opt/mongodb/bin/mongod
-bash: /opt/mongodb/bin/mongod/: Not a directory
任何帮助/指导都是最有用的