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