自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何在Linux(Ubuntu)上安裝Redmine

企業(yè)動態(tài)
本文主要描述如何在如何在Linux(Ubuntu)上安裝Redmine。通過這篇文章你將了解Linux(Ubuntu)上安裝Redmine的流程等一系列要點。看完以后能對大家有所幫助。

[[187013]]

費話就不多說了,本文主要描述如何在如何在Linux(Ubuntu)上安裝Redmine。通過這篇文章你將了解如下內(nèi)容。

TL;DR

  • 在Linux(Ubuntu)上安裝Redmine的基本流程
  • 配置phpMyAdmin的遠程登錄權限
  • 配置Redmine默認訪問端口
  • Linux常用操作命令

在Linux(Ubuntu)上安裝Redmine的流程

  • 首先下載***版的Redmine安裝包。
  • 通過scp命令拷貝本地文件到遠程服務器
  1. scp /Users/CharlieChu/Desktop/bitnami-redmine-3.3.2-2-linux-x64-installer.run root@<remote-ip>:/home 
  2. bitnami-redmine-3.3.2-2-linux-x64-installer.run 100% 151MB 1.2MB/s 02:07 

scp命令

  • 通過ssh連接到遠程Linux服務器
  1. ssh root@<remote-ip> 
  2.  
  3. Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-63-generic x86_64) 
  4.  
  5.  * Documentation:  https://help.ubuntu.com 
  6.  * Management:     https://landscape.canonical.com 
  7.  * Support:        https://ubuntu.com/advantage 

ssh命令

  • 通過cd命令進入到.run文件所在的目錄
  1. cd /home 
  2. /home# ls 
  3. bitnami-redmine-3.3.2-2-linux-x64-installer.run 
  • 輸入”chmod +x *.run”
  1. chmod +x *.run 

chmod命令

  • 輸入”./*.run”,.run文件就開始運行了,出現(xiàn)如下界面
  1. root@xxxxxx:/home# ./*.run 

這樣Redmine就安裝成功了。

  • 刪除安裝包

通過rm命令刪除Redmine安裝包

  1. 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該行,然后保存退出。
  1. cd /opt/redmine-3.3.2-2/apps/redmine/conf 
  2. vim httpd-app.conf 

vim命令:打開、保存退出等命令。

可以通過cat命令查看該文件是否修改成功。

  1. cat httpd-app.conf 

cat命令

  • 打開 httpd-vhosts.conf 修改<VirtualHost *:80>該行。
  1. vim httpd-vhosts.conf 
  • 打開/opt/redmine-3.3.2-2/apache2/scripts/ctl.sh,修改這一段httpd started at port 80。
  1. cd ~ 
  2. 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>。

  1. cd /opt/redmine-3.3.2-2/apache2/conf/bitnami/ 
  2. vim bitnami.conf 

打開/opt/redmine-3.3.2-2/apache2/conf/httpd.conf,修改第52和212行-Listen 8082和ServerName localhost:80的端口信息。

  1. vim /opt/redmine-3.3.2-2/apache2/conf/httpd.conf  
  2. :set number 

:set number 跳轉(zhuǎn)到指定行

  • 重啟Redmine即可。
  1. /opt/redmine-3.3.1-0/ctlscript.sh restart 
  2.  
  3. Syntax OK 
  4. /opt/redmine-3.3.2-2/apache2/scripts/ctl.sh : httpd stopped 
  5. /opt/redmine-3.3.2-2/mysql/scripts/ctl.sh : mysql stopped 
  6. 170324 11:33:36 mysqld_safe Logging to '/opt/redmine-3.3.2-2/mysql/data/mysqld.log'
  7. 170324 11:33:36 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-3.3.2-2/mysql/data 
  8. /opt/redmine-3.3.2-2/mysql/scripts/ctl.sh : mysql  started at port 3306 
  9. Syntax OK 
  10. /opt/redmine-3.3.2-2/apache2/scripts/ctl.sh : httpd started at port 8082 

配置phpMyAdmin的遠程登錄權限

利用利用如下命令打開httpd-app.conf:

  1. vim /opt/redmine-3.3.2-2/apps/phpmyadmin/conf/httpd-app.conf 

查找到如下內(nèi)容:

  1. <IfVersion >= 2.3> 
  2. Require local 

將其修改為:

  1. <IfVersion >= 2.3>  
  2. Require all granted 

找回用戶名和密碼信息

遠程登錄phpMyAdmin時,如果忘記了用戶名和密碼,則可以登錄到服務器去查看密碼了:

  1. vim /opt/redmine-3.3.2-2/apps/redmine/htdocs/config/database.yml 

這樣你就可以看到對應的用戶名和密碼等信息了。

【本文為51CTO專欄作者“朱成林”的原創(chuàng)稿件,轉(zhuǎn)載請聯(lián)系原作者】

戳這里,看該作者更多好文

責任編輯:武曉燕 來源: 51CTO專欄
相關推薦

2021-09-11 15:41:55

UbuntuDropbox云服務

2021-07-12 14:47:16

UbuntuZlib代碼

2021-06-15 09:46:43

UbuntuLinuxCode Blocks

2019-08-30 11:20:28

UbuntuVirtualBoxLinux

2018-10-15 15:23:50

UbuntupipPython

2023-08-08 12:38:52

2024-01-04 11:50:00

UbuntuDocker

2019-08-02 15:30:42

UbuntuMongoDB命令

2020-03-20 18:19:05

UbuntuLinuxNetbeans

2020-04-08 12:20:25

UbuntuLinuxOracle Java

2020-03-24 07:00:00

UbuntuLinuxNetbeans

2021-03-07 11:46:02

UbuntuLinuxErlang

2021-12-04 21:45:19

UbuntuLinux開源

2013-07-25 10:00:30

UbuntuVirtualBox

2015-10-16 10:07:22

Justniffer安裝Ubuntu

2020-04-21 14:21:31

LinuxPython

2021-10-12 08:43:19

LinuxSambaWindows

2019-11-26 09:20:47

LinuxJava

2022-05-29 17:37:39

LinuxUbuntuPHP

2018-09-30 10:35:29

UbuntuCinnamon桌面環(huán)境
點贊
收藏

51CTO技術棧公眾號