歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> redmine安裝詳解,redmine詳解

redmine安裝詳解,redmine詳解

日期:2017/3/6 9:19:53   编辑:學習Linux

redmine安裝詳解,redmine詳解


redmine安裝詳解,redmine詳解



1、Linux:centos6.4(32位)
2、Gcc的編譯環境。使用make命令編輯。
yum install gcc-c++
3、PCRE
PCRE(Perl Compatible Regular Expressions)是一個Perl庫,包括 perl 兼容的正則表達式庫。nginx的http模塊使用pcre來解析正則表達式,所以需要在linux上安裝pcre庫。
yum install -y pcre pcre-devel
注:pcre-devel是使用pcre開發的一個二次開發庫。nginx也需要此庫。
4、zlib
zlib庫提供了很多種壓縮和解壓縮的方式,nginx使用zlib對http包的內容進行gzip,所以需要在linux上安裝zlib庫。
yum install -y zlib zlib-devel

5、openssl
OpenSSL 是一個強大的安全套接字層密碼庫,囊括主要的密碼算法、常用的密鑰和證書封裝管理功能及SSL協議,並提供豐富的應用程序供測試或其它目的使用。
nginx不僅支持http協議,還支持https(即在ssl協議上傳輸http),所以需要在linux安裝openssl庫。
yum install -y openssl openssl-devel

-------------------------------------------------------------------------------------------------------------------------------------------
Linux下安裝項目管理工具Redmine詳解
Posted on 2016年5月30日 by admin
Linux下安裝項目管理工具Redmine
1、Ruby安裝
Ruby on Rails網站推薦使用1.8.7版。

點擊(此處)折疊或打開

# 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
設置Ruby環境變量

點擊(此處)折疊或打開

# cd ~
# vi .bash_profile
添加下面一行

點擊(此處)折疊或打開

export PATH=$PATH:/usr/local/ruby/bin
保存退出:wq

點擊(此處)折疊或打開

# . .bash_profile
2、RubyGems安裝

點擊(此處)折疊或打開

# 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安裝

點擊(此處)折疊或打開

# gem install rake //直接使用gem命令安裝rake.
//也可以下載安裝地址:http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
4、Ruby on Rails

點擊(此處)折疊或打開

# gem install rails
安裝成功提示:
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…
//也可以下載安裝地址:http://rubyforge.org/frs/download.php/60599/rails-2.3.3.tgz
5、Redmine安裝

點擊(此處)折疊或打開

# 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
設置數據庫參數
# cp database.yml.example database.yml
# vi database.yml
production:
adapter: mysql
database:redmine
host: localhost
username: redmineuser
password: redminepw
encoding: utf8
保存退出:wq
創建mysql數據庫
# /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設定

點擊(此處)折疊或打開

(注意此時的目錄一定要在redmine/config裡,不然會出錯,本文後面有錯誤信息。)
# rake db:migrate RAILS_ENV=”production” //創建表
# rake redmine:load_default_data RAILS_ENV=”production” //加載默認配置
這裡會要求選擇默認語言,我選的中文zh:
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
這個默認設置只是在未登錄時的界面語言,當用戶登錄後,默認語言還是英語,在My account裡可以修改成其它語言。
啟動WEB服務
# ruby script/server webrick -e production
或# ruby /usr/local/redmine/script/server webrick -e production
停止web服務方法:在當前啟動窗口按ctrl+C
訪問http://ip:3000/
初始用戶名/密碼:admin/admin
這樣啟動後,啟動窗口是不能關閉的,所以要使Redmine作為服務啟動,需添加-d參數:
# ruby script/server webrick -e production -d
或# ruby /usr/local/redmine/script/server webrick -e production –d
停止服務方法:(ps命令查出此進程的pid號,再殺掉,目前好像只能這樣,我看了–help裡面,還沒有停止的參數。)
# ps aux | grep ruby
# kill -9 [PID]
OK,安裝完畢!可以進去玩了!哈哈!
貼個圖,秀一下,嘿嘿~~~

啟動redmine命令

bundle exec thin start -p 3000 -e production

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

http://xxxxxx/Linuxjc/1155491.html TechArticle

Copyright © Linux教程網 All Rights Reserved