新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
如何在Linux(Ubuntu)上安裝Redmine
本文主要描述如何在如何在linux(ubuntu)上安裝Redmine。通過(guò)這篇文章你將了解如下內(nèi)容。

TL;DR
- 在Linux(Ubuntu)上安裝Redmine的基本流程
- 配置phpMyAdmin的遠(yuǎn)程登錄權(quán)限
- 配置Redmine默認(rèn)訪問(wèn)端口
- Linux常用操作命令
在Linux(Ubuntu)上安裝Redmine的流程
-
首先下載最新版的Redmine安裝包。
-
通過(guò)scp命令拷貝本地文件到遠(yuǎn)程服務(wù)器
scp /Users/CharlieChu/Desktop/bitnami-redmine-3.3.2-2-linux-x64-installer.run root@:/home
bitnami-redmine-3.3.2-2-linux-x64-installer.run 100% 151MB 1.2MB/s 02:07
scp命令
- 通過(guò)ssh連接到遠(yuǎn)程Linux服務(wù)器
ssh root@
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命令
- 通過(guò)cd命令進(jìn)入到.run文件所在的目錄
cd /home
/home# ls
bitnami-redmine-3.3.2-2-linux-x64-installer.run
- 輸入”chmod +x *.run”
chmod +x *.run
chmod命令
- 輸入”./*.run”,.run文件就開(kāi)始運(yùn)行了,出現(xiàn)如下界面
root@xxxxxx:/home# ./*.run
這樣Redmine就安裝成功了。
- 刪除安裝包
通過(guò)rm命令刪除Redmine安裝包
rm -rf bitnami-redmine-3.3.2-2-linux-x64-installer.run
rm命令 rm -rf file (-r 就是向下遞歸,不管有多少級(jí)目錄一并刪除. -f 就是直接強(qiáng)行刪除)
配置Redmine默認(rèn)訪問(wèn)端口
Redmine作為內(nèi)部使用的項(xiàng)目管理系統(tǒng),默認(rèn)占用80端口太過(guò)于浪費(fèi)了,這里把Redmine訪問(wèn)端口改成8082。需要修改如下5處配置。
- 打開(kāi) httpd-app.conf 修改
PassengerPreStart http://127.0.0.1:80/redmine該行,然后保存退出。
cd /opt/redmine-3.3.2-2/apps/redmine/conf
vim httpd-app.conf
vim命令:打開(kāi)、保存退出等命令。
可以通過(guò)cat命令查看該文件是否修改成功。
cat httpd-app.conf
cat命令
- 打開(kāi) httpd-vhosts.conf 修改
該行。
vim httpd-vhosts.conf
- 打開(kāi)
/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
- 打開(kāi)
/opt/redmine-3.3.2-2/apache2/conf/bitnami/bitnami.conf,修改這一段。
cd /opt/redmine-3.3.2-2/apache2/conf/bitnami/
vim bitnami.conf
- 打開(kāi)
/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 跳轉(zhuǎn)到指定行
- 重啟Redmine即可。
/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
配置phpMyAdmin的遠(yuǎn)程登錄權(quán)限
利用利用如下命令打開(kāi)httpd-app.conf:
vim /opt/redmine-3.3.2-2/apps/phpmyadmin/conf/httpd-app.conf
查找到如下內(nèi)容:
= 2.3>
Require local
將其修改為:
= 2.3>
Require all granted
找回用戶名和密碼信息
遠(yuǎn)程登錄phpMyAdmin時(shí),如果忘記了用戶名和密碼,則可以登錄到服務(wù)器去查看密碼了:
vim /opt/redmine-3.3.2-2/apps/redmine/htdocs/config/database.yml
這樣你就可以看到對(duì)應(yīng)的用戶名和密碼等信息了。
本文標(biāo)題:如何在Linux(Ubuntu)上安裝Redmine
當(dāng)前路徑:http://www.dlmjj.cn/article/djhjpgi.html


咨詢
建站咨詢
