在ubuntu 10.04 LTS上部署带有nginx和mongrel集群的Rails应用程序

我将mongrel集群和nginx模块安装到我的虚拟机上。 工作环境是

ruby 1.9.2 rails 3.0.6 rubygems 1.7.2 mongrel_cluster 1.0.5 mongrel 1.2 

当我启动杂种群,它会抛出以下错误。 应用程序脱机请build议我一些解决scheme。 我已经尝试了很多使用Google的解决scheme,并没有解决这个问题。 任何forms的帮助表示赞赏。

 *starting port 8011 NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109 . NOTE: from_installed_gems(arg) is deprecated. From /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate' NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_gems_in called from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:50 . ** !!! PID file tmp/pids/mongrel.8011.pid already exists. Mongrel could be running already. Check your log/mongrel.8011.log for errors. ** !!! Exiting with error. You must stop mongrel and clear the .pid before I'll attempt a start.* 

编辑:

谢谢@dioms和@Hmallett。 我更新了gem,并从tmp / pids中删除了现有的pid文件,并重新启动了d群集。 它给了我错误

 NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109 . NOTE: from_installed_gems(arg) is deprecated. From /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate' NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_gems_in called from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:50 . starting port 8009 NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109 

请给我build议一些解决办法。 我是服务器安装的新手,我不知道什么包括在configuration脚本。

看起来像你的一些gem已被弃用

试试这个来更新它们

gem update && gem update --system

tmp / pids / mongrel.8011.pid是否存在?

你确定杂种还没有在8011端口上运行吗?

如果是这样,rm tmp / pids / mogrel.8011.pid并尝试重新启动。

不赞成的gem警告只是一个警告,最后两行是线索为什么不启动。

另外,看起来你正在运行Ruby 1.9.1,但是我认为如果你想使用ruby 1.9,rails 3需要1.9.2。