Detailed steps for installing redmine2.5.1 under Linux

Source: Internet
Author: User

Yum install-y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 A utoconf automake Libtool Bison iconv-devel


Yum Install Mysql-devel


Installing RVM

Curl-l Get.rvm.io | Bash-s Stable


source/etc/profile.d/rvm.sh


Rvm-v


Sed-i-E ' s/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g '/usr/local/rvm/config/db


RVM list Known #查看有哪些东东


RVM Install 2.0.0


RVM 2.0.0--default


Ruby-v


Gem-v


To set the gem Source:

Gem Source-r https://rubygems.org/

Gem Source-a http://ruby.taobao.org

If gems cannot be added, you can modify the vi/etc/resolv.conf

Keep only nameserver 114.114.114.114, and then try again


Gem Install rails-v=2.3.5


Rails-v


Create database Redmine character set UTF8;


redmine2.5.1 Decompression to/usr/local

Cd/usr/local/redmine

CD Config

The CP comes out a database.yml and then modifies the contents of the production, referring to the following

Production

Adapter:mysql2

Database:redmine

Host:localhost

Username:root

Password:123123


Cd/usr/local/redmine

Gem Install Bundler

Bundle install--without Development Test Rmagick or bundle install--without development test

(If you re-modify the database.yml, you need to rerun the command above.)


Rake Generate_secret_token


Rails_env=production Rake Db:migrate


Rails_env=production Rake Redmine:load_default_data

Select ZH


#ruby script/rails Server WEBRICK-E production

#ruby/usr/local/redmine/script/rails server webrick-e production–d #以服务形式启动


Gem Install mongrel--pre

VI Gemfile

Added gem ' Mongrel ', ' ~> 1.2.0.pre2 '

Ruby/usr/local/redmine/script/rails Server MONGREL-E production-d #此方式运行快


Login:

Admin

Admin


Set Redmine self-boot:

Which ruby# see the path to Ruby

Vi/etc/rc.local

Add the following content:

echo "Start Redmine:"

/usr/local/rvm/rubies/ruby-2.0.0-p451/bin/ruby/usr/local/redmine/script/rails Server Mongrel-e production–d

Sh/etc/rc.local


Cause: Redhat Firewall blocked Port 3000

Workaround: Configure the firewall, open the Port 3000

#/sbin/iptables-i input-p TCP--dport 3000-j ACCEPT

#/etc/rc.d/init.d/iptables Save

# Service Iptables Restart


Configure Outgoing Mail:

VI configuration.yml

Production

Email_delivery:

Delivery_method:: SMTP

Smtp_settings:

Address: "Smtp.126.com"

Port:25

Authentication:: Login

Domain: ' 126.com '

User_name: ' xxx '

Password: ' xxx '


This article is from the "Cockroach Software Testing" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1437534

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.