您好,登錄后才能下訂單哦!
本篇內容介紹了“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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。