我的Ruby應用程序工作正常,直到本週早些時候,系統崩潰,現在我得到一個錯誤信息頁面上...紅寶石(機架)應用程序無法啓動錯誤信息
錯誤消息: 無法在本地主機連接到主節點:27017(蒙戈:: ConnectionFailure)
異常類: PhusionPassenger ::不明錯誤
應用根: /家庭/部署/ WWW/GM-混帳
該系統被設置爲這樣的......
•Ruby on Rails的3.0.8 •Mongoid 2.0.2 •Redis的& Resque爲後臺處理
我曾嘗試以下引導序列,但withou成功...
/opt/redis/redis-server
/opt/mongodb/bin/mongod --force --logpath /opt/mongodb/bin
rake environment rescue:workers
touch /home/proyectos/gm/test_git/goldenmile
我已經很多次更新爲電子xample
/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
任何幫助/方向將是非常有用得到錯誤信息
嗨,我已經取得了一些成功,我用... 根@ XXXX:〜#的/ opt/mongodb的/ bin中/ mongod的--fork --logpath /opt/mongodb/db.log 根@ XXXX :〜#分叉進程:2579 所有輸出將轉到:/opt/mongodb/db.log – elixireu
但是,我現在在下一部分序列中出現以下錯誤... root @ XXXX:〜#rake environment resque:workers rake中止! 找不到Rakefile(查找:rakefile,Rakefile,rakefile.rb,Rakefile.rb) /usr/local/lib/ruby/1.9.1/rake.rb:2367:in'raw_load_rakefile' /usr/local/lib/ruby/1.9.1/rake.rb:2007:in'block in load_rakefile' /usr/local/lib/ruby/1.9.1/rake.rb:2058:in' standard_exception_handling' /usr/local/lib/ruby/1.9.1/rake.rb:2006:in'load_rakefile' /usr/local/lib/ruby/1.9.1/rake.rb:1991:in'run' /usr/local/bin /耙:31:在' –
elixireu