Http://www.redmine.org.cn/download
Installing project management tools under Linux Redmine
1. Ruby Installation
The Ruby on Rails website recommends the use of version 1.8.7.
Click (here) to collapse or open
- # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
- # tar ZXVF ruby-1.8.7-p174.tar.gz
- # CD ruby-1.8.7-p174
- #./configure–prefix=/usr/local/ruby
- # Make && make install
Set Ruby environment variables
Click (here) to collapse or open
- # CD ~
- # VI. bash_profile
Add the following line
Click (here) to collapse or open
- Export path= $PATH:/usr/local/ruby/bin
Save exit: Wq
Click (here) to collapse or open
- # . . bash_profile
2, RubyGems installation
Click (here) to collapse or open
- # wget https://rubygems.org/rubygems/rubygems-1.3.5.tgz (http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz)
- # tar ZXVF rubygems-1.3.5.tgz
- # CD rubygems-1.3.5
- # Ruby SETUP.RB
3, Rake installation
Click (here) to collapse or open
- # Gem Install rake//Use the Gem command to install rake directly.
- You can also download the installation address: http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
4. Ruby on Rails
Click (here) to collapse or open
- # Gem Install Rails
- Installation success Prompt:
- Successfully installed activesupport-2.3.3
- Successfully installed activerecord-2.3.3
- Successfully installed rack-1.0.0
- Successfully installed actionpack-2.3.3
- Successfully installed actionmailer-2.3.3
- Successfully installed activeresource-2.3.3
- Successfully installed rails-2.3.3
- 7 Gems installed
- Installing RI documentation for activesupport-2.3.3 ...
- Installing RI documentation for activerecord-2.3.3 ...
- Installing RI documentation for rack-1.0.0 ...
- Installing RI documentation for actionpack-2.3.3 ...
- Installing RI documentation for actionmailer-2.3.3 ...
- Installing RI documentation for activeresource-2.3.3 ...
- Installing RI documentation for rails-2.3.3 ...
- Installing RDOC documentation for activesupport-2.3.3 ...
- Installing RDOC documentation for activerecord-2.3.3 ...
- Installing RDOC documentation for rack-1.0.0 ...
- Installing RDOC documentation for actionpack-2.3.3 ...
- Installing RDOC documentation for actionmailer-2.3.3 ...
- Installing RDOC documentation for activeresource-2.3.3 ...
- Installing RDOC documentation for rails-2.3.3 ...
- You can also download the installation address: http://rubyforge.org/frs/download.php/60599/rails-2.3.3.tgz
5, Redmine installation
Click (here) to collapse or open
- # wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
- # tar ZXVF redmine-0.8.4.tar.gz
- # mv Redmine-0.8.4/usr/local/redmine
- # cd/usr/local/redmine/config
- Set Reset database Parameters
- # cp database.yml.example database.yml
- # vi database.yml
- production:
- adapte R:mysql
- database:redmine
- host:localhost
- username:redmineuser
- PASSWORD:REDMINEP W
- Encoding:utf8
- Save exit: Wq
- create MySQL database
- #/usr/local/mysql/bin/mysql-u Root-p
- mysql> CREATE DATABASE redmine default character set UTF8;
- Grant all on redmine.* to root;
- Grant all on redmine.* to [email protected];
- Grant all on redmine.* to Redmineuser;
- Grant all on redmine.* to Redmineuser @localhost;
- set password for [Email protected]=password (' REDMINPW ');
- Mysql>exit;
Remine settings
Click (here) to collapse or open
- (Note that at this time the directory must be in the redmine/config, otherwise it will be wrong, this article has an error message later.) )
- # Rake Db:migrate rails_env= "Production"//CREATE TABLE
- # Rake Redmine:load_default_data rails_env= "production"//load Default configuration
- Here will be asked to select the default language, I choose the Chinese en:
- Select LANGUAGE:BG, CA, cs, Da, de, en, es, FI, fr, he, Hu, it, JA, KO, lt, nl, no, PL, PT, pt-br, RO, Ru, SK, SR, SV, TH , TR, UK, vn, en, zh-tw [en] en
- This default setting is only the interface language when not logged in, and when the user logs in, the default language is English and can be modified in the My account to other languages.
- Start the Web service
- # Ruby Script/server WEBRICK-E Production
- or # Ruby/usr/local/redmine/script/server WEBRICK-E production
- Stop Web Service method: Press CTRL + C in the current startup window
- Visit http://ip:3000/
- Initial user name/password: admin/admin
- After this is started, the startup window cannot be closed, so to enable Redmine to start as a service, you need to add the-D parameter:
- # Ruby Script/server webrick-e production-d
- or # Ruby/usr/local/redmine/script/server webrick-e production–d
- Stop the Service method: (PS command to find out the PID number of this process, and then kill, it seems like this only, I looked at the help inside, has not stopped the parameters. )
- # PS aux | grep Ruby
- # kill-9 [PID]
- OK, the installation is complete! You can go in and play! Ha ha!
- Put a picture, show, hehe ~ ~ ~
Installing project management tools under Linux Redmine