Installing project management tools under Linux Redmine

Source: Internet
Author: User
Tags redmine ruby on rails website ruby on rails

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

    1. # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
    2. # tar ZXVF ruby-1.8.7-p174.tar.gz
    3. # CD ruby-1.8.7-p174
    4. #./configure–prefix=/usr/local/ruby
    5. # Make && make install

Set Ruby environment variables

Click (here) to collapse or open

    1. # CD ~
    2. # VI. bash_profile

Add the following line

Click (here) to collapse or open

    1. Export path= $PATH:/usr/local/ruby/bin

Save exit: Wq

Click (here) to collapse or open

    1. # . . bash_profile

2, RubyGems installation

Click (here) to collapse or open

    1. # wget https://rubygems.org/rubygems/rubygems-1.3.5.tgz (http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz)
    2. # tar ZXVF rubygems-1.3.5.tgz
    3. # CD rubygems-1.3.5
    4. # Ruby SETUP.RB

3, Rake installation

Click (here) to collapse or open

    1. # Gem Install rake//Use the Gem command to install rake directly.
    2. 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

  1. # Gem Install Rails
  2. Installation success Prompt:
  3. Successfully installed activesupport-2.3.3
  4. Successfully installed activerecord-2.3.3
  5. Successfully installed rack-1.0.0
  6. Successfully installed actionpack-2.3.3
  7. Successfully installed actionmailer-2.3.3
  8. Successfully installed activeresource-2.3.3
  9. Successfully installed rails-2.3.3
  10. 7 Gems installed
  11. Installing RI documentation for activesupport-2.3.3 ...
  12. Installing RI documentation for activerecord-2.3.3 ...
  13. Installing RI documentation for rack-1.0.0 ...
  14. Installing RI documentation for actionpack-2.3.3 ...
  15. Installing RI documentation for actionmailer-2.3.3 ...
  16. Installing RI documentation for activeresource-2.3.3 ...
  17. Installing RI documentation for rails-2.3.3 ...
  18. Installing RDOC documentation for activesupport-2.3.3 ...
  19. Installing RDOC documentation for activerecord-2.3.3 ...
  20. Installing RDOC documentation for rack-1.0.0 ...
  21. Installing RDOC documentation for actionpack-2.3.3 ...
  22. Installing RDOC documentation for actionmailer-2.3.3 ...
  23. Installing RDOC documentation for activeresource-2.3.3 ...
  24. Installing RDOC documentation for rails-2.3.3 ...
  25. 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

    1. # wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
    2. # tar ZXVF redmine-0.8.4.tar.gz
    3. # mv Redmine-0.8.4/usr/local/redmine
    4. # cd/usr/local/redmine/config
    5. Set Reset database Parameters
    6. # cp database.yml.example database.yml
    7. # vi database.yml
    8. production:
    9. adapte R:mysql
    10. database:redmine
    11. host:localhost
    12. username:redmineuser
    13. PASSWORD:REDMINEP W
    14. Encoding:utf8
    15. Save exit: Wq
    16. create MySQL database
    17. #/usr/local/mysql/bin/mysql-u Root-p
    18. mysql> CREATE DATABASE redmine default character set UTF8;
    19. Grant all on redmine.* to root;
    20. Grant all on redmine.* to [email protected];
    21. Grant all on redmine.* to Redmineuser;
    22. Grant all on redmine.* to Redmineuser @localhost;
    23. set password for [Email protected]=password (' REDMINPW ');
    24. Mysql>exit;

Remine settings

Click (here) to collapse or open

  1. (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.) )
  2. # Rake Db:migrate rails_env= "Production"//CREATE TABLE
  3. # Rake Redmine:load_default_data rails_env= "production"//load Default configuration
  4. Here will be asked to select the default language, I choose the Chinese en:
  5. 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
  6. 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.
  7. Start the Web service
  8. # Ruby Script/server WEBRICK-E Production
  9. or # Ruby/usr/local/redmine/script/server WEBRICK-E production
  10. Stop Web Service method: Press CTRL + C in the current startup window
  11. Visit http://ip:3000/
  12. Initial user name/password: admin/admin
  13. 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:
  14. # Ruby Script/server webrick-e production-d
  15. or # Ruby/usr/local/redmine/script/server webrick-e production–d
  16. 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. )
  17. # PS aux | grep Ruby
  18. # kill-9 [PID]
  19. OK, the installation is complete! You can go in and play! Ha ha!
  20. Put a picture, show, hehe ~ ~ ~

Installing project management tools under Linux Redmine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.