最终找到了解决方法,在以下的文件里加入两行就可以:
/home/redmine/redmine-2.5.1/public/dispatch.fcgi
require 'rubygems' require 'fcgi'