production: adapter: mysql2 #ruby1.9使用mysql2 database: redmine host: localhost username: redmine password: my_password
root@ :/usr/share/redmine# rake generate_secret_token#创建数据库
root@ :/usr/share/redmine# RAILS_ENV=production rake db:migrate
root@ :/usr/share/redmine# RAILS_ENV=production rake redmine:load_default_data
4、修改用户权限
root@ :/usr/share/redmine# mkdir tmp public/plugin_assets
#为了使用apache2,将redmine的运行用户设置为www-data
root@ :/usr/share/redmine# sudo chown -R www-data:www-data files log tmp public/plugin_assets
root@ :/usr/share/redmine# sudo chmod -R 755 files log tmp public/plugin_assets
5、试运行
root@ :/usr/share/redmine# ruby script/rails server webrick -e production
#浏览器访问::3000/ 确认是否可以正常运行