在虚拟机虚拟机vmware workstation12 安装好centos 7,通过如下步骤配置上网以及配置安装源。

1. 虚拟机上网配置

1)设置虚拟网络
虚拟机VMware + centos 7 ,上网配置
2)NAT模式虚拟机VMware + centos 7 ,上网配置
3)NAT选项配置
虚拟机VMware + centos 7 ,上网配置
4)虚拟机IP地址设置
虚拟机VMware + centos 7 ,上网配置
5)重启network服务,上网成功
虚拟机VMware + centos 7 ,上网配置
2. 安装源更新
1)备份 yum.repos.d 为 yum.repos.old
cd /etcp -r yum.repos.d yum.repos.old

2)删除yum.repos.d 下文件
rm -rf *

3)安装阿里云安装源
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo
yum clean all
yum makecache
yum update

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2021-03-26
  • 2021-09-17
  • 2021-12-10
  • 2021-11-19
  • 2021-12-13
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-11-29
  • 2021-07-21
  • 2021-11-14
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案