Official installation Documentation Reference: www. redmine. orgprojectsredminewikiRedmineInstall first install MySQL, see: blog. csdn. netcsfreebirdarticledetails6928733 create Redmin database and user mysql-uroot-pCREATEDATABASEredmineCHARACTERSETutf8
Official installation Documentation Reference: http://www.redmine.org/projects/redmine/wiki/RedmineInstall first install MySQL, refer to: http://blog.csdn.net/csfreebird/article/details/6928733 to CREATE Redmin DATABASE and user mysql-u root-p create database redmine character set utf8
Official installation Documentation Reference:
Http://www.redmine.org/projects/redmine/wiki/RedmineInstall
First install MySQL, refer:
Http://blog.csdn.net/csfreebird/article/details/6928733
Create Redmin databases and users
Mysql-u root-p
CREATE DATABASE redmine CHARACTER SET utf8;CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
Download the Redmine 2.4.2 code:
wget http://www.redmine.org/releases/redmine-2.4.2.tar.gztar zxvf redmine-2.4.2.tar.gz
Install ruby1.9.3
apt-get install ruby1.9.3
Configure the database,
cd configcp database.yml.example database.yml
Edit database. yml
production: adapter: mysql2 database: redmine host: localhost username: redmine password: "your_pwd" encoding: utf8
The following is the dependency for installing the gem by executing the command in the redmine-2.4.2 directory:
root@test:/usr/src/redmine-2.4.2# gem install bundlerFetching: bundler-1.5.2.gem (100%)Successfully installed bundler-1.5.21 gem installedInstalling ri documentation for bundler-1.5.2...Installing RDoc documentation for bundler-1.5.2...
Install redmine Dependencies
bundle install --without development test
An error occurs:
An error occurred while installing mysql2 (0.3.14), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.14'` succeeds before bundling.
Run the following command to fix the problem:
apt-get install mysql-clientapt-get install libmysqlclient-dev
gem install mysql2 -v '0.3.14'
Run the redmine installation command again:
bundle install --without development test
Get the new error message:
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.
Run the following command to fix the problem:
apt-get install libmagickcore-dev libmagickwand-dev
Run the following command to complete the installation:
rake generate_secret_tokenRAILS_ENV=production rake db:migrateRAILS_ENV=production rake redmine:load_default_datamkdir -p tmp tmp/pdf public/plugin_assetschown -R 777 files log tmp public/plugin_assetschmod -R 755 files log tmp public/plugin_assets
Start the service for testing:
root@test:/usr/src/redmine-2.4.2# ruby script/rails server webrick -e production=> Booting WEBrick=> Rails 3.2.16 application starting in production on http://0.0.0.0:3000=> Call with -d to detach=> Ctrl-C to shutdown server[2014-01-11 18:49:18] INFO WEBrick 1.3.1[2014-01-11 18:49:18] INFO ruby 1.9.3 (2011-10-30) [x86_64-linux][2014-01-11 18:49:18] INFO WEBrick::HTTPServer#start: pid=10173 port=3000Started GET "/" for 119.80.97.56 at 2014-01-11 18:49:35 +0800Processing by WelcomeController#index as HTML Current user: anonymous Rendered welcome/index.html.erb within layouts/base (36.7ms)Completed 200 OK in 437.0ms (Views: 145.0ms | ActiveRecord: 16.7ms)
Visit the redmine website in a browser. The default Administrator account is
Admin = admin