Redmine installation details, redmine details

Source: Internet
Author: User
Tags imagemagick openssl library redmine ruby on rails website ruby on rails

Redmine installation details, redmine details


1. Linux: centos6.4 (32-bit)
2. Gcc compiling environment. Use the make command to edit the file.
Yum install gcc-c ++
3. PCRE
PCRE (Perl Compatible Regular Expressions) is a Perl library, including a perl-Compatible Regular Expression Library. The http module of nginx uses pcre to parse regular expressions. Therefore, you need to install the pcre Library on linux.
Yum install-y pcre-devel
Note: pcre-devel is a secondary development library developed using pcre. Nginx also needs this library.
4. zlib
The zlib library provides many compression and decompression methods. nginx uses zlib to perform gzip on the http package content. Therefore, you need to install the zlib library on linux.
Yum install-y zlib-devel

5. openssl
OpenSSL is a powerful secure socket-layer cryptographic library that includes major cryptographic algorithms, common keys, certificate encapsulation management functions, and SSL protocols, and provides a wide range of applications for testing or other purposes.
Nginx not only supports http protocol, but also https (Transmission of http over ssl protocol). Therefore, you need to install the openssl library in linux.
Yum install-y openssl-devel

Certificate -------------------------------------------------------------------------------------------------------------------------------------------
Install the project management tool Redmine in Linux
Posted on May 30, 2016 by admin
Install the project management tool Redmine in Linux
1. Ruby Installation
Version 1.8.7 is recommended for the Ruby on Rails website.

Click (here) to fold 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 fold or open

# Cd ~
# Vi. bash_profile
Add the following line

Click (here) to fold or open

Export PATH = $ PATH:/usr/local/ruby/bin
Save and exit: wq

Click (here) to fold or open

# .. Bash_profile
2. RubyGems Installation

Click (here) to fold or open

# Wget 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 fold or open

# Gem install rake // directly use the gem command to install rake.
// You can also download installation address: http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
4. Ruby on Rails

Click (here) to fold or open

# Gem install rails
Prompt for successful installation:
Successfully installed activesupport-2.3.3
Successfully installed activerecord-2.3.3
Successfully installeds 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 installation address: http://rubyforge.org/frs/download.php/60599/rails-2.3.3.tgz
5. Redmine Installation

Click (here) to fold or open

# Wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
# Tar zxvf redmine-0.8.4.tar.gz
# Music redmine-0.8.4/usr/local/redmine
# Cd/usr/local/redmine/config
Set database Parameters
# Cp database. yml. example database. yml
# Vi database. yml
Production:
Adapter: mysql
Database: redmine
Host: localhost
Username: redmineuser
Password: redminepw
Encoding: utf8
Save and exit: wq
Create a 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 root @ localhost;
Grant all on redmine. * to redmineuser;
Grant all on redmine. * to redmineuser @ localhost;
Set password for redmineuser @ localhost = password ('redminpw ');
Mysql> exit;
Remine settings

Click (here) to fold or open

(Note that the directory at this time must be in redmine/config. Otherwise, an error will occur. An error message will be provided later in this article .)
# Rake db: migrate RAILS_ENV = "production" // create a table
# Rake redmine: load_default_data RAILS_ENV = "production" // load the default configuration
Select the default language:
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, zh, zh-tw [en] zh
This default setting is only the interface language when the user is not logged on. After the user logs on, the default language is English and can be changed to other languages in My account.
Start WEB Services
# Ruby script/server webrick-e production
Or # ruby/usr/local/redmine/script/server webrick-e production
How to stop a web Service: press ctrl + C in the current startup window
Access http: // ip: 3000/
Initial username/password: admin/admin
In this way, the startup window cannot be closed, so to enable Redmine 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
How to stop the service: (The ps command finds the pid of the process and then kills it. It seems that this is only the case now. I have read-help and there are no parameters to stop .)
# Ps aux | grep ruby
# Kill-9 [PID]
OK. installation is complete! You can go in and play! Haha!
Paste a picture and show off it. Hey ~~~

 

Start the redmine command

Bundle exec thin start-p 3000-e production

 

  1. # Yum install ImageMagick
  2. # Yum install ImageMagick-devel

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.