1.安装运行环境 [root@redmine mail]# gem list *** LOCAL GEMS *** actionmailer (2.3.11) actionpack (2.3.11) activerecord (2.3.11) activeresource (2.3.11) activesupport (2.3.11) cgi_multipart_eof_fix (2.5.0) daemon_controller (0.2.6) daemons (1.1.3) fastthread (1.0.7) fcgi (0.8.8) gem_plugin (0.2.3) i18n (0.4.2) mongrel (1.1.5) mysql (2.8.1) passenger (3.0.7) rack (1.1.1) rails (2.3.11) rake (0.8.7) rdoc (3.6.1) rubygems-update (1.3.7) #gem install rails -v=2.3.11
3.#cd /home/redmine/config/ #cp database.yml.example database.yml #vim database.yml # MySQL (default setup). production: adapter: mysql database: redmine host: localhost username: redmine password: xxxx encoding: utf8
4. #rake generate_session_store #RAILS_ENV=production rake db:migrate #RAILS_ENV=production rake redmine:load_default_data #mkdir tmp public/plugin_assets #chown -R redmine:redmine files log tmp public/plugin_assets #chmod -R 755 files log tmp public/plugin_assets #ruby script/server webrick -e production //Once WEBrick has started, point your browser to http://localhost:3000/. You should now see the application welcome page.
5.redmine与apache整合 #gem i passenger #passenger-install-apache2-module #cd /usr/local/apache/conf #vim httpd.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7 PassengerRuby /usr/local/bin/ruby <Directory "/home/redmine/public/"> Options -MultiViews AllowOverride All Order allow,deny Allow from all </Directory>
#cd /home/redmine/public/ #cp dispatch.cgi.example dispatch.cgi #vim dispatch.cgi //修改ruby的路径
参考文档:http://www.redmine.org/projects/redmine/wiki/RedmineInstall |