歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Centos redmine安裝教程

本教程使用Centos6.3 64位版本。以#開頭代表需要再linux上執行的指令。安裝Redmine一定要注意版本對應,不能一個高一個低,否則無法安裝!!!

 

1、先安裝Mysql

http://blog.csdn.net/tabactivity/article/details/12121599

 

2、安裝openssl-1.0.0a.tar.gz ,這個安裝主要目的是提取文件,因為後續安裝會缺少文件。

# tar zxvf openssl-1.0.0a.tar.gz
# cd openssl-1.0.0a
# ./config
# make
# make test
# make install

 

 

3. 安裝Ruby

[ruby] view plaincopy
  1. tar xvf ruby-1.8.7-p352.tar.bz2
  2.  
  3. cd ruby-1.8.7-p352
  4.  
  5. ./configure --prefix=/usr
  6.  
  7. make && make install

    查看是否安裝成功:

    ruby -v

    which ruby

    4. 安裝Ruby擴展庫

    [ruby] view plaincopy
    1. cd ext/zlib
    2.  
    3. ruby extconf.rb
    4.  
    5. make && make install
    6.  
    7.  
    8. cd ../ext/openssl
    9.  
    10. ruby extconf.rb
    11.  
    12. make && make install

       

      5.回到一開始的目錄,安裝RubyGems

      [ruby] view plaincopy
      1. tar xvf rubygems-1.6.2.tgz
      2.  
      3. cd rubygems-1.6.2
      4.  
      5. ruby setup.rb

        6、安裝其他依賴項

        #gem install rake
        
        # gem install bundler
        
        #gem install activesupport
        #gem install activerecord
        #gem install actionpack
        #gem install actionmailer
        #gem install activeresource
        #gem install rails
        
        


         

        6. 安裝redmine

        [ruby] view plaincopy
        1. tar xvf redmine-1.1.2.tar.gz
        2. cd redmine-1.1.2
        3. #修改配置
        4. cp ./config/database.yml.example ./config/database.yml
        5. vi database.yml
        6. production:
        7. adapter: mysql
        8. database: redmine
        9. host: localhost
        10. username: root
        11. password: <你的mysql密碼>

           

          建數據庫、表,在redmine目錄下:

          [ruby] view plaincopy
          1. mysql:
          2. create database redmine character set utf8;
          3.  
          4. 命令行:
          5. rake db:migrate RAILS_ENV=production

             

            注:如有報錯:

            #在redmine的./config/boot.rb中加一句: require 'thread'

            運行:

            [ruby] view plaincopy
            1. ruby script/server -e production

              通過localhost:3000來訪問,管理員登錄帳號/密碼:admin/admin

               


               
Copyright © Linux教程網 All Rights Reserved