您好,登录后才能下订单哦!
本篇内容介绍了“CentOS 8上怎么安装和配置Redmine项目管理系统”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
操作系统:
Centos 8实验环境
应用:MariaDB + apache + Passenger + Ruby + Redmine
Redmine包括支持多个项目、wiki、问题跟踪系统、论坛、日历、邮件通知等;最近公司项目需要用到Redmine,所以记录下来了。
创建一个MySQL数据库
以root用户登录,执行交互操作
[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
设置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.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
生成数据库密钥
[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.conf <VirtualHost *:80> ServerName redmine.com ServerAlias www.redmine.com DocumentRoot /opt/redmine/redmine-4.1.0/public <Directory /opt/redmine/redmine-4.1.0/public> Options Indexes ExecCGI FollowSymLinks Require all granted AllowOverride all </Directory> ErrorLog /var/log/httpd/example.com-error.log CustomLog /var/log/httpd/example.com-access.log combined </VirtualHost>
重启httpd服务
[root@linuxcool ~]# systemctl restart httpd
测试Redmine
http://192.168.3.21
“CentOS 8上怎么安装和配置Redmine项目管理系统”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。