全都来自于网络,整理起来方便我下次装系统。
1 系统镜像下载
阿里云镜像:https://mirrors.aliyun.com/centos/
找对应的isos-dvd镜像下载
2 换源
进入root,切换至yum.repos.d目录
cd /etc/yum.repos.d/
创建新文件夹并将源文件备份为repo.bak
mkdir backup && mv *repo backup/
下载国内yum源文件
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
更新下载yum源地址
sed -i -e "s|mirrors.cloud.aliyuncs.com|mirrors.aliyun.com|g" /etc/yum.repos.d/CentOS-* sed -i -e "s|releasever|releasever-stream|g" /etc/yum.repos.d/CentOS-*
生成缓存
yum clean all && yum makecache
原帖地址:https://www.cnblogs.com/Julien1021/p/16255403.html
3 安装并启动ssh-sever
安装openssh-sever
yum install openssh-server -y
启动ssh
systemctl start sshd
4 安装docker
直接看菜鸟教程:https://www.runoob.com/docker/centos-docker-install.html
Comments | NOTHING