CentOS配置BitNami-redmine

https://blog.csdn.net/sinat_37942883/article/details/68483272

搭建redmine:

 

1、下载redmine(下面版本任选一个,如需要还原备份的redmine数据则选回同一版本)

wget https://downloads.bitnami.com/files/stacks/redmine/3.3.2-2/bitnami-redmine-3.3.2-2-linux-x64-installer.run

wget https://downloads.bitnami.com/files/stacks/redmine/2.6.2-0/bitnami-redmine-2.6.2-0-linux-x64-installer.run

wget https://downloads.bitnami.com/files/download/redmine/bitnami-redmine-2.5.1-1-linux-x64-installer.run

 

2、安装BitNami Redmine Stack

2.1   赋予安装程序可执行权限

chmod +x bitnami-redmine-2.5.1-1-linux-x64-installer.run

2.2 安装BitNami Redmine Stack

./bitnami-redmine-2.5.1-1-linux-x64-installer.run

2.3 选择安装phpMyadmin,用于后续备份数据库

 

剩余步骤按照指引安装

 

3、安装完毕后开启端口

开启端口

firewall-cmd--add-port=80/tcp --permanent

firewall-cmd--reload

查询开启端口

firewall-cmd--list-all

 

4、设置开机启动redmine

cp -piv /opt/redmine-2.5.1-1/ctlscript.sh/etc/rc.d/init.d/bitnami-redmine

cd/etc/rc.d/init.d/

vibitnami-redmine

在#!/bin/sh下面添加:

# chkconfig:2345 80 30
# description: BitNami Service

保存退出

chkconfig --addbitnami-redmine

chkconfig--list bitnami-redmine

 

 

5、访问redmine

访问服务器的ip(ifconfig的ipv4地址),如100.84.73.144/,后面加redmine

http://100.84.73.144/redmine/

登录名和密码是安装时设置的账号及密码

 

6、修复redmine新建、修改问题,点保存后,响应缓慢

vi/opt/redmine-2.5.1-1/apps/redmine/htdocs/config/configuration.yml

找到 delivery_method: :smtp,将smtp改为async_smtp

重启redmine

sh /opt/redmine-2.5.1-1/ctlscript.shrestart

 

7、查看phpmyadmin数据库账号密码

在/opt/redmine-2.5.1-1/目录下,敲入find -name database.yml,找到config目录下的database.yml文件,得到./apps/redmine/htdocs/config/database.yml路径

vi ./apps/redmine/htdocs/config/database.yml

其中

production:

  adapter: mysql2

  database: bitnami_redmine

  host: localhost

  username: bitnami

  password: ea7b7ceef6

username为phpmyadmin的登录名,password为phpmyadmin的登录密码

 

8、配置phpmyadmin,改为任意IP也能访问(默认只有配置phpmyadmin的本地能访问)

vi /opt/redmine-2.5.1-1/apps/phpmyadmin/conf/httpd-app.conf

= 2.3>

Require local

修改为

= 2.3>

Require allgranted

最后重启redmine服务

sh /opt/redmine-2.5.1-1/ctlscript.sh restart

 

9、登录phpmyadmin

访问服务器的ip(ifconfig的ipv4地址),如100.84.73.144/,后面加phpmyadmin

http://100.84.73.144/phpmyadmin/

账号密码为database.yml记录的账号和密码

 

10、备份数据库

备份分为sql和文件(附件和图片资源),备份sql可在phpmyadmin备份,导出sql即可;

文件数据存放在/opt/redmine-2.5.1-1/apps/redmine/htdocs/files 文件夹,只需备份files文件夹即可。

 

11、导入数据

导入sql可在phpmyadmin进行;导入文件数据只需复制备份的files文件夹内容到/opt/redmine-2.5.1-1/apps/redmine/htdocs/files中即可

 

PS:

 

发现Docker配置redmine也相当容易,可参考http://www.cnblogs.com/iluzhiyong/p/redmine.html

--------------------- 本文来自 Super-J 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/sinat_37942883/article/details/68483272?utm_source=copy

你可能感兴趣的:(【软件项目管理】)