新聞中心
Redmine是基于ROR框架開(kāi)發(fā)的一套跨平臺(tái)項(xiàng)目管理系統(tǒng),是項(xiàng)目管理系統(tǒng)的后起之秀,據(jù)說(shuō)是源于Basecamp的ror版而來(lái),支持多種數(shù)據(jù)庫(kù),除了和DotProject的功能大致相當(dāng)外,還有不少自己的獨(dú)特的功能,例如提供wiki、新聞臺(tái)、時(shí)間跟蹤、feed聚合、導(dǎo)出pdf等,還可以集成其它版本管理系統(tǒng)和BUG跟蹤系統(tǒng),例如SVN、CVS、TD等。

實(shí)驗(yàn)環(huán)境
操作系統(tǒng):Centos 8
應(yīng)用:MariaDB + apache + Passenger + Ruby + Redmine
Redmine包括支持多個(gè)項(xiàng)目、wiki、問(wèn)題跟蹤系統(tǒng)、論壇、日歷、郵件通知等;最近公司項(xiàng)目需要用到Redmine,所以記錄下來(lái)了。
創(chuàng)建一個(gè)MySQL數(shù)據(jù)庫(kù)
以root用戶登錄,執(zhí)行交互操作
[root@linuxcool ~]# mysql
mysql> CREATE DATABASE redmine CHARACTER SET utf8;
mysql> GRANT ALL ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'password';
mysql> flush privileges;
mysql> exit;
更新dnf源
[root@linuxcool ~]# dnf install epel-release
[root@linuxcool ~]# dnf config-manager --enable epel
安裝httpd
[root@linuxcool ~]# dnf install httpd
安裝ruby
[root@linuxcool ~]# dnf install ruby
安裝Passenger
[root@linuxcool ~]# dnf install mod_passenger passenger passenger-devel
設(shè)置apache開(kāi)機(jī)啟動(dòng)
[root@linuxcool ~]# systemctl enable httpd
創(chuàng)建redmine系統(tǒng)用戶
[root@linuxcool ~]# useradd -m -U -r -d /opt/redmine redmine
授權(quán)
[root@linuxcool ~]# usermod -a -G redmine apache
[root@linuxcool ~]# chmod 750 /opt/redmine
安裝Redmine
[root@linuxcool ~]# dnf group install "Development Tools"
[root@linuxcool ~]# dnf install zlib-devel curl-devel openssl-devel mariadb-devel ruby-devel
下載Redmine安裝包
[root@linuxcool ~]# curl -L http://www.redmine.org/releases/redmine-4.1.0.tar.gz -o redmine.tar.gz
[root@linuxcool ~]# tar -xvf redmine.tar.gz
配置Redmine
[root@linuxcool ~]# su - redmine
[root@linuxcool ~]# cp /opt/redmine/redmine-4.1.0/config/database.yml.example /opt/redmine/redmine-4.1.0/config/database.yml
[root@linuxcool ~]# vim /opt/redmine/redmine-4.1.0/config/database.yml
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "password"
encoding: utf8mb4
安裝Ruby dependencies插件
[root@linuxcool ~]# cd ~/redmine-4.1.0
[root@linuxcool ~]# gem install bundler --no-rdoc --no-ri
[root@linuxcool ~]# bundle install --without development test postgresql sqlite --path vendor/bundle
生成數(shù)據(jù)庫(kù)密鑰
[root@linuxcool ~]# bundle exec rake generate_secret_token
[root@linuxcool ~]# RAILS_ENV=production bundle exec rake db:migrate
配置apache虛擬主機(jī)
[root@linuxcool ~]# vim /etc/httpd/conf.d/redmine.conf
ServerName redmine.com ServerAlias www.redmine.com DocumentRoot /opt/redmine/redmine-4.1.0/public
Options Indexes ExecCGI FollowSymLinks Require all granted AllowOverride all
ErrorLog /var/
log/httpd/example.com-error.log CustomLog /var/
log/httpd/example.com-access.log combined
重啟httpd服務(wù)
[root@linuxcool ~]# systemctl restart httpd
測(cè)試Redmine
http://192.168.3.21
也可以通過(guò)http://www.redmine.com,但是需要修改hosts文件才可以,否則訪問(wèn)的是redmine官網(wǎng)。
當(dāng)前題目:CentOS8中部署Redmine項(xiàng)目管理和缺陷跟蹤系統(tǒng)
當(dāng)前地址:http://www.dlmjj.cn/article/dpdsidh.html


咨詢
建站咨詢
