Linux更换国内源

  类似应用市场,如安卓有安卓应用市场,苹果有苹果的应用市场

  1.备份Linux自带的EPEL源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

 2.生成

首先cd /etc/yum.repos.d 进入文件

执行wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3.清空缓存

yum clean all

4.重新生成缓存

yum makecache

可能出现的问题:

Intel VT-x处于禁用状态?  

解决方案:
 (1)重启电脑,进入BIOS将其设置为Enabled。(注:不同品牌电脑进入BIOS的方法不尽相同,请网上查阅对应电脑型号的进入BIOS的方法)
 (2)进入BIOS后,在Security -> Virtualization -> Inter(R) Virtualization Technology设置为:Enabled。(不同电脑可能不一样,找到特别相似的修改即可)
 (3)保存BIOS,重启电脑。 

猜你喜欢

转载自blog.csdn.net/qq_43080036/article/details/89879265