2014年9月26日 星期五

[研究] Redmine 2.5.2 專案管理與 Bug 缺陷追蹤管理系統安裝 (CentOS 7.0 x86_64)

[研究] Redmine  2.5.2 專案管理與 Bug 缺陷追蹤管理系統安裝 (CentOS 7.0 x86_64)

2014-09-26

Redmine 是一個網頁界面的專案管理與缺陷追蹤管理系統 (Bug tracking system),它是的自由及開放原始碼 (Free Open Source Software, OSS) 工具。

官方網站
http://www.redmine.org/

下載
http://www.redmine.org/projects/redmine/wiki/Download
http://www.redmine.org/releases/redmine-2.5.2.tar.gz

安裝參考
http://darktraining.com/109/
http://www.redmine.org/projects/redmine/wiki/RedmineInstall

http://gen.jusz.pl/2014/04/19/how-to-install-redmine-2-5-on-centos-6-5/

Install Redmine 2.5.x on Centos 6.5 - 64 bit
http://www.redmine.org/projects/redmine/wiki/install_Redmine_25x_on_Centos_65_complete

Redmine 1.3.2 on CentOS 5/6 installation HOWTO
http://www.redmine.org/projects/redmine/wiki/Redmine_on_CentOS_installation_HOWTO

How to Install Redmine on CentOS (Detailed)
http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)

Howto Install Redmine on CentOS 7
https://jakobgillich.com/installing-redmine-on-centosrhel-7/

安裝

firewall-cmd --add-port=3000/tcp --permanent
firewall-cmd --reload

yum -y install @development mariadb-server mariadb-devel ruby ruby-devel ImageMagick ImageMagick-devel rubygem-rake rubygem-bundler

systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb

# 建立資料庫 "redmine"
# 建立資料庫使用者 redmine
# 建立資料庫使用者 redmine 密碼 my_password
# 使用者名稱和密碼可以換掉,但是 config/database.yml 設定時候要更著換

mysql  -e  "CREATE DATABASE redmine CHARACTER SET utf8;";
mysql  -e  "CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';";
mysql  -e  "GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';";

adduser redmine

cd /usr/local/src

curl -O http://www.redmine.org/releases/redmine-2.5.2.tar.gz
tar xvf redmine-2.5.2.tar.gz
mv redmine-2.5.2/ /home/redmine/
mv /home/redmine/redmine-2.5.2 /home/redmine/redmine
chown -R redmine:redmine /home/redmine/redmine

#su redmine
#cd ~/redmine
cd  /home/redmine/redmine

cp config/database.yml.example config/database.yml

# 設定 使用者名稱、密碼
vi config/database.yml

bundle install --without development test
rake generate_secret_token
RAILS_ENV=production rake db:migrate

# 載入預設資料 (optional)
RAILS_ENV=production rake redmine:load_default_data

mkdir -p tmp tmp/pdf public/plugin_assets
chown -R redmine:redmine files log tmp public/plugin_assets
chmod -R 755 files log tmp public/plugin_assets

# 啟動
ruby script/rails server webrick -e production

# 帳號 admin, 密碼 admin
firefor  http://localhost:3000/  &


編輯  config/database.yml 設定使用者名稱、密碼

其中

production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: root
  password: ""
  encoding: utf8

改為

production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "my_password"
  encoding: utf8


(完)

相關

Redmine - 維基百科,自由的百科全書

沒有留言:

張貼留言