http://www.redmine.org/projects/redmine/wiki/redmineinstallmysql
mysql -u root -p
输入mysql密码后,依次执行web
CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
cp config/database.yml.example config/database.yml
production: adapter: mysql2 database: redmine host: localhost username: root password: my_password
须要安装mysql2,rails3的驱动全用的mysql2.sql
sudo apt-get install libmysqlclient-dev gem install mysql2
若是须要数据库
sudo apt-get install imagemagick libmagickwand-dev gem install rmagick
而后是bundlerbash
gem install bundler bundle install --without development test
bundle exec rake generate_secret_token
redmine 1.4命令不一样,详见上面的连接ide
RAILS_ENV=production bundle exec rake db:migrate
这个过程有点慢(建立表)测试
RAILS_ENV=production bundle exec rake redmine:load_default_data
会提示选择语言,简体中文为zhspa
bundle exec rails server webrick -e production
打开http://localhost:3000/.net
此时没法经过IP地址访问,详见Rails启动后,没法经过IP访问code
将命令换成以下命令便可。
bundle exec rails server webrick -e production -p 端口 -b IP