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

TL;DR
- 在Linux(Ubuntu)上安裝Redmine的基本流程
- 配置phpMyAdmin的遠程登錄權限
- 配置Redmine默認訪問端口
- Linux常用操作命令
在Linux(Ubuntu)上安裝Redmine的流程
-
首先下載最新版的Redmine安裝包。
-
通過scp命令拷貝本地文件到遠程服務器
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命令
- 通過ssh連接到遠程Linux服務器
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命令
- 通過cd命令進入到.run文件所在的目錄
cd /home
/home# ls
bitnami-redmine-3.3.2-2-linux-x64-installer.run
- 輸入”chmod +x *.run”
chmod +x *.run
chmod命令
- 輸入”./*.run”,.run文件就開始運行了,出現(xiàn)如下界面
root@xxxxxx:/home# ./*.run
這樣Redmine就安裝成功了。
- 刪除安裝包
通過rm命令刪除Redmine安裝包
rm -rf bitnami-redmine-3.3.2-2-linux-x64-installer.run
rm命令 rm -rf file (-r 就是向下遞歸,不管有多少級目錄一并刪除. -f 就是直接強行刪除)
配置Redmine默認訪問端口
Redmine作為內(nèi)部使用的項目管理系統(tǒng),默認占用80端口太過于浪費了,這里把Redmine訪問端口改成8082。需要修改如下5處配置。
- 打開 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命令:打開、保存退出等命令。
可以通過cat命令查看該文件是否修改成功。
cat httpd-app.conf
cat命令
- 打開 httpd-vhosts.conf 修改
該行。
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,修改這一段。
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 跳轉(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的遠程登錄權限
利用利用如下命令打開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
找回用戶名和密碼信息
遠程登錄phpMyAdmin時,如果忘記了用戶名和密碼,則可以登錄到服務器去查看密碼了:
vim /opt/redmine-3.3.2-2/apps/redmine/htdocs/config/database.yml
這樣你就可以看到對應的用戶名和密碼等信息了。
名稱欄目:如何在Linux(Ubuntu)上安裝Redmine
網(wǎng)站URL:http://fisionsoft.com.cn/article/djhjpgi.html


咨詢
建站咨詢
