问题跟踪系统安装:centos+docker+nginx+php+MantisBT

本文介绍了如何在CentOS7.8上通过Docker部署nginx+php环境,并详细阐述了安装过程,包括安装centos、docker、vsftp、nginx+php以及最后安装并配置问题跟踪系统MantisBT。
摘要由CSDN通过智能技术生成

1. 安装centos7.8

1).下载centos镜像

CentOS 国内镜像下载地址 :
http://mirrors.aliyun.com/centos/7/isos/x86_64/ 阿里云开源镜像
https://mirrors.cnnic.cn/centos/7/isos/x86_64/ 清华大学开源镜像

http://centos.ustc.edu.cn/centos/7/isos/x86_64/ 中国科学技术大学
http://ftp.sjtu.edu.cn/centos/7/isos/x86_64/ 上海交大

http://mirrors.163.com/centos/7/isos/x86_64/ 网易
http://mirrors.cn99.com/centos/7/isos/x86_64/ 网易开源镜像站
http://mirrors.sohu.com/centos/7/isos/x86_64/ 搜狐

2).使用阿里云的yum源

(1)首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo

[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

(2)查看CentOS系统版本

[root@localhost ~]# cat  /etc/redhat-release

(3)下载ailiyun的yum源配置文件到/etc/yum.repos.d/

CentOS7

[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

CentOS6

[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS5

[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

(4)运行yum makecache生成缓存

[root@localhost ~]# yum makecache

(5)这时候再更新系统就会看到以下mirrors.aliyun.com信息

[root@localhost ~]# yum -y update

2. 安装docker

(1)安装必要的一些系统工具

yum install -y yum-utils device-mapper-persistent-data lvm2

(2)添加软件源信息

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

(3)更新并安装Docker-CE

yum makecache fast
yum -y install docker-ce

(4)Docker开启服务,状态查看,加入开机启动

systemctl start docker
systemctl status docker
systemctl enable docker

安装后如需UI界面管理可以考虑安装Rancher,portainer,shipyard,
相关可以参照:

https://blog.csdn.net/xl_lx/article/details/81183956
https://www.cnblogs.com/cjh-notes/p/11295925.html

3. 安装vsftp

(1)yum安装vsftp

yum install -y vsftpd

(2)设置开机启动

systemctl enable vsftpd

(3)启动ftp服务

systemctl start vsftpd.service

(4)打开防火墙

firewall-cmd --z
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值