1、Linux软件源配置操作

1、安装Linux:centos6.8 64bit 

大家可以把它装在虚拟机里面也可以直接装一个Linux的机器。

http://vault.centos.org/6.8/isos/x86_64/CentOS-6.8-x86_64-bin-DVD1.iso

2、在Linux机器上输入ifconfig获取ip

ifconfig

通过本地的终端Xshell 5来操作

ssh 主机名@主机ip

3、阿里云原配置官网(https://opsx.alibaba.com/mirror

4、源配置步骤

(1)备份

sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

(2)下载CentOS-Base.repo到/etc/yum.repos.d

//本教程使用CentOS 6,下载方式
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

(3)运行yum makecache生成缓存

yum makecache

猜你喜欢

转载自blog.csdn.net/xyphf/article/details/81158334
今日推荐