温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

CentOS8中如何部署Redmine项目管理和缺陷跟踪系统

发布时间:2022-02-17 09:45:47 来源:亿速云 阅读:219 作者:iii 栏目:开发技术

这篇“CentOS8中如何部署Redmine项目管理和缺陷跟踪系统”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“CentOS8中如何部署Redmine项目管理和缺陷跟踪系统”文章吧。

Redmine是基于ROR框架开发的一套跨平台项目管理系统,是项目管理系统的后起之秀,据说是源于Basecamp的ror版而来,支持多种数据库,除了和DotProject的功能大致相当外,还有不少自己的独特的功能,例如提供wiki、新闻台、时间跟踪、feed聚合、导出pdf等,还可以集成其它版本管理系统和BUG跟踪系统,例如SVN、CVS、TD等。

CentOS8中如何部署Redmine项目管理和缺陷跟踪系统

实验环境

操作系统:Centos 8

应用:MariaDB + apache + Passenger + Ruby + Redmine

CentOS8中如何部署Redmine项目管理和缺陷跟踪系统

Redmine包括支持多个项目、wiki、问题跟踪系统、论坛、日历、邮件通知等;最近公司项目需要用到Redmine,所以记录下来了。

创建一个MySQL数据库

以root用户登录,执行交互操作

[root@linuxcool ~]# mysqlmysql> 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
CentOS8中如何部署Redmine项目管理和缺陷跟踪系统

设置apache开机启动

[root@linuxcool ~]# systemctl enable httpd

创建redmine系统用户

[root@linuxcool ~]# useradd -m -U -r -d /opt/redmine redmine

授权

[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.ymlproduction:
 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

生成数据库密钥

[root@linuxcool ~]# bundle exec rake generate_secret_token[root@linuxcool ~]# RAILS_ENV=production bundle exec rake db:migrate

配置apache虚拟主机

[root@linuxcool ~]# vim /etc/httpd/conf.d/redmine.confServerName redmine.com
ServerAlias www.redmine.com
DocumentRoot /opt/redmine/redmine-4.1.0/publicOptions Indexes ExecCGI FollowSymLinks
Require all granted
AllowOverride allErrorLog /var/log/httpd/example.com-error.log
CustomLog /var/log/httpd/example.com-access.log combined

重启httpd服务

[root@linuxcool ~]# systemctl restart httpd

测试Redmine

http://192.168.3.21

也可以通过http://www.redmine.com,但是需要修改hosts文件才可以,否则访问的是redmine官网。

CentOS8中如何部署Redmine项目管理和缺陷跟踪系统

以上就是关于“CentOS8中如何部署Redmine项目管理和缺陷跟踪系统”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI