费话就很少说了,本文主要描述如何在如何在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
这样你就能够看到对应的用户名和密码等信息了。
欢迎点赞!