vm下安装centos

1. 加入強制使用 GPT 分割表
inst.gpt
2.biosboot 2m root 2g swap 3g  剩下看着来
3.更换国内yum源
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base-aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
4.安装epel源
rm -f /var/run/yum.pid
yum list | grep epel-release
yum install -y epel-release
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache

猜你喜欢

转载自blog.csdn.net/weixin_41791956/article/details/80562980