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

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

实验环境

操作系统:Centos 8

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

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

创建一个MySQL数据库

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

[root@linuxcool~]#mysqlmysql>CREATEDATABASEredmineCHARACTERSETutf8;mysql>GRANTALLONredmine.*TO'redmine'@'localhost'IDENTIFIEDBY'password';mysql>flushprivileges;mysql>exit;更新dnf源

[root@linuxcool~]#dnfinstallepel-release[root@linuxcool~]#dnfconfig-manager--enableepel安装httpd

[root@linuxcool~]#dnfinstallhttpd安装ruby

[root@linuxcool~]#dnfinstallruby安装Passenger

[root@linuxcool~]#dnfinstallmod_passengerpassengerpassenger-devel

设置apache开机启动

[root@linuxcool~]#systemctlenablehttpd创建redmine系统用户

[root@linuxcool~]#useradd-m-U-r-d/opt/redmineredmine授权

[root@linuxcool~]#usermod-a-Gredmineapache[root@linuxcool~]#chmod750/opt/redmine安装Redmine

[root@linuxcool~]#dnfgroupinstall"DevelopmentTools"[root@linuxcool~]#dnfinstallzlib-develcurl-developenssl-develmariadb-develruby-devel下载Redmine安装包

[root@linuxcool~]#curl-Lhttp://www.redmine.org/releases/redmine-4.1.0.tar.gz-oredmine.tar.gz[root@linuxcool~]#tar-xvfredmine.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:mysql2database:redminehost:localhostusername:redminepassword:"password"encoding:utf8mb4安装Ruby dependencies插件

[root@linuxcool~]#cd~/redmine-4.1.0[root@linuxcool~]#geminstallbundler--no-rdoc--no-ri[root@linuxcool~]#bundleinstall--withoutdevelopmenttestpostgresqlsqlite--pathvendor/bundle生成数据库密钥

[root@linuxcool~]#bundleexecrakegenerate_secret_token[root@linuxcool~]#RAILS_ENV=productionbundleexecrakedb:migrate配置apache虚拟主机

[root@linuxcool~]#vim/etc/httpd/conf.d/redmine.confServerNameredmine.comServerAliaswww.redmine.comDocumentRoot/opt/redmine/redmine-4.1.0/publicOptionsIndexesExecCGIFollowSymLinksRequireallgrantedAllowOverrideallErrorLog/var/log/httpd/example.com-error.logCustomLog/var/log/httpd/example.com-access.logcombined重启httpd服务

[root@linuxcool~]#systemctlrestarthttpd测试Redmine

http://192.168.3.21

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

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