費話就很少說了,本文主要描述如何在如何在Linux(Ubuntu)上安裝Redmine。經過這篇文章你將瞭解以下內容。php
TL;DRmysql
首先下載最新版的Redmine安裝包。linux
經過scp命令拷貝本地文件到遠程服務器sql
scp /Users/CharlieChu/Desktop/bitnami-redmine-3.3.2-2-linux-x64-installer.run root@<remote-ip>:/home bitnami-redmine-3.3.2-2-linux-x64-installer.run 100% 151MB 1.2MB/s 02:07
scp命令apache
ssh root@<remote-ip> Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-63-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage
ssh命令ubuntu
cd /home /home# ls bitnami-redmine-3.3.2-2-linux-x64-installer.run
chmod +x *.run
chmod命令vim
root@xxxxxx:/home# ./*.run
這樣Redmine就安裝成功了。bash
經過rm命令刪除Redmine安裝包服務器
rm -rf bitnami-redmine-3.3.2-2-linux-x64-installer.run
rm命令 rm -rf file (-r 就是向下遞歸,無論有多少級目錄一併刪除. -f 就是直接強行刪除)app
Redmine做爲內部使用的項目管理系統,默認佔用80端口太過於浪費了,這裏把Redmine訪問端口改爲8082。須要修改以下5處配置。
PassengerPreStart http://127.0.0.1:80/redmine
該行,而後保存退出。cd /opt/redmine-3.3.2-2/apps/redmine/conf vim httpd-app.conf
vim命令:打開、保存退出等命令。
能夠經過cat命令查看該文件是否修改爲功。
cat httpd-app.conf
cat命令
<VirtualHost *:80>
該行。vim httpd-vhosts.conf
/opt/redmine-3.3.2-2/apache2/scripts/ctl.sh
,修改這一段httpd started at port 80
。cd ~ vim /opt/redmine-3.3.2-2/apache2/scripts/ctl.sh
/opt/redmine-3.3.2-2/apache2/conf/bitnami/bitnami.conf
,修改這一段<VirtualHost _default_:80>
。cd /opt/redmine-3.3.2-2/apache2/conf/bitnami/ vim bitnami.conf
/opt/redmine-3.3.2-2/apache2/conf/httpd.conf
,修改第52和212行-Listen 8082
和ServerName localhost:80
的端口信息。vim /opt/redmine-3.3.2-2/apache2/conf/httpd.conf :set number
:set number
跳轉到指定行
/opt/redmine-3.3.1-0/ctlscript.sh restart Syntax OK /opt/redmine-3.3.2-2/apache2/scripts/ctl.sh : httpd stopped /opt/redmine-3.3.2-2/mysql/scripts/ctl.sh : mysql stopped 170324 11:33:36 mysqld_safe Logging to '/opt/redmine-3.3.2-2/mysql/data/mysqld.log'. 170324 11:33:36 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-3.3.2-2/mysql/data /opt/redmine-3.3.2-2/mysql/scripts/ctl.sh : mysql started at port 3306 Syntax OK /opt/redmine-3.3.2-2/apache2/scripts/ctl.sh : httpd started at port 8082
利用以下命令打開httpd-app.conf:
vim /opt/redmine-3.3.2-2/apps/phpmyadmin/conf/httpd-app.conf
查找到以下內容:
<IfVersion >= 2.3> Require local
將其修改成:
<IfVersion >= 2.3> Require all granted
遠程登陸phpMyAdmin時,若是忘記了用戶名和密碼,則能夠登陸到服務器去查看密碼了:
vim /opt/redmine-3.3.2-2/apps/redmine/htdocs/config/database.yml
這樣你就能夠看到對應的用戶名和密碼等信息了。
歡迎點贊!