centos

1更新yum 源

sed -i "s/enabled=1/enabled=0/g" /etc/yum/pluginconf.d/fastestmirror.conf

阿里云Vault镜像

curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo 

wget -O /etc/yum.repos.d/CentOS-Base.repo https://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Aliyun.repo

清理并构建新缓存

yum clean all

yum makecache

yum repolist

三种文件传输方式

1.filezilla软件

2. yum -y install lrzsz

 上传 rz
 下载  sz 文件名

3.sftp (ALT+p)

上传 put  文件地址
下载 get 文件地址

centos7镜像源

// 配置阿里云镜像
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

cat /etc/redhat-release        //查看系统的版本

 yum clean all    //清除缓存
 yum makecache        //把yum源缓存到本地,加快软件的搜索好安装速度
 yum list        //总共列出了9954个包
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值