[root@cent5-ADCPtest config]# rake generate_secret_token //
会产生config/initializers/secret_token.rb
[root@cent5-ADCPtest config]# RAILS_ENV=production rake db:migrate //创建数据库结构
....
==  ChangeChangesPathLengthLimit: migrating ===================================
-- change_column(:changes, :path, :text, {:default=>nil, :null=>true})
   -> 0.0119s
-- change_column(:changes, :path, :text, {:null=>false})
   -> 0.0105s
-- change_column(:changes, :from_path, :text)
....
[root@cent5-ADCPtest config]# RAILS_ENV=production rake redmine:load_default_data //
插入默认的配置数据
(in /opt/redmine)
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Select language: ar, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, 
fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, 
ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] zh   //选择语言,选择zh
====================================
Default configuration data loaded.
[root@cent5-ADCPtest redmine]# useradd redmine
[root@cent5-ADCPtest redmine]# chmod -R 755 files log tmp publi
[root@cent5-ADCPtest redmine]# chown -R redmine:redmine files log tmp public
[root@cent5-ADCPtest redmine]# ruby script/rails server webrick -e production & //后台运行redmine服务,通过3000端口即可访问到Redmine
6.通过Apache访问Redmine
[root@cent5-ADCPtest redmine]# /opt/ruby/bin/gem install passenger
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching: fastthread-1.0.7.gem (100%)
Building native extensions.  This could take a while...
Fetching: daemon_controller-1.0.0.gem (100%)
Fetching: passenger-3.0.15.gem (100%)
Successfully installed fastthread-1.0.7
Successfully installed daemon_controller-1.0.0
Successfully installed passenger-3.0.15
3 gems installed
Installing ri documentation for fastthread-1.0.7...
Installing ri documentation for daemon_controller-1.0.0...
Installing ri documentation for passenger-3.0.15...
Installing RDoc documentation for fastthread-1.0.7...
Installing RDoc documentation for daemon_controller-1.0.0...
Installing RDoc documentation for passenger-3.0.15...
[root@cent5-ADCPtest redmine]# passenger-install-apache2-module 
Welcome to the Phusion Passenger Apache 2 module installer, v3.0.15.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
1                                               //选择1进行安装
--------------------------------------------
Checking for required software...
 * GNU C++ compiler... found at /usr/bin/g++
 * Curl development headers with SSL support... found
 * OpenSSL development headers... found
 * Zlib development headers... found
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /opt/ruby/bin/rake
 * rack... found
 * Apache 2... found at /usr/sbin/httpd
 * Apache 2 development headers... not found
 * Apache Portable Runtime (APR) development headers... not found
 * Apache Portable Runtime Utility (APU) development headers... not found
Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Installation instructions for required software
 * To install Apache 2 development headers:
   Please run yum install httpd-devel as root.
 * To install Apache Portable Runtime (APR) development headers:
   Please run yum install apr-devel as root.
 * To install Apache Portable Runtime Utility (APU) development headers:
   Please run yum install apr-util-devel as root.
If the aforementioned instructions didn't solve your problem, then please take
a look at the Users Guide:
  /opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.15/doc/Users guide Apache.html