redmine的安装方式有很多种,本文使用docker进行安装,关于rhel7的docker安装可以参考:
redhat7.2 安装docker
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# sed -i 's/$releasever/7/g' /etc/yum.repos.d/CentOS-Base.repo
# yum clean all
# yum list
# yum -y install docker
# systemctl start docker
1.使用docker安装redmine
[root@localhost ~]# docker pull redmine
Using default tag: latest
Trying to pull repository docker.io/library/redmine ...
latest: Pulling from docker.io/library/redmine
5040bd298390: Pull complete
596ec0bfbfe7: Pull complete
330c0f0b9895: Pull complete
759aaf3bf184: Pull complete
67d391bd471e: Pull complete
8d548a23aa17: Pull complete
548bf7ed54c4: Pull complete
42efbdc1be57: Pull complete
02c31ff70094: Pull complete
0cdc0aa7eb6c: Pull complete
fb2bb7220f9b: Downloading [================================> ] 38.38 MB/58.21 MB
a2bd5e9fe51e: Download complete
dc502bf8c5ab: Download complete
c88d95529382: Downloading [======================> ] 33.52 MB/75.79 MB
3560bd24100c: Download complete
...
2.下载后使用docker命令启动redmine镜像,同时自定义一些属性,包含共享数据卷,端口映射等
docker run -it --name=redmine0408 -p 12345:3000 -v ~/redmineshare:/usr/src/temp redmine
3.安装后访问主机IP:12345即可打开redminie主页,默认用户名密码为admin/admin,初次登录需重新设置密码。
密码创建后登录,界面如下所示:
注意事项:
跨主机访问时如果报错请关闭firewall或selinux尝试一下。