配置, 阿里, 阿里云, 里云, yum
打开centos的yum文件夹 输入命令cd /etc/yum.repos.d/ 用wget下载repo文件 输入命令wget http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有网站安装wget工具,输入yum -y install wget 回车进行网站安装。 当前目录是/etc/yum.repos.d/,刚刚下载的Centos-7.repo也在这个目录上 备份 [[email 988365@gmail.com] ~]# cd /etc/yum.repos.d/[[email 988365@gmail.com] yum.repos.d]# mkdir repo_bak[[email 988365@gmail.com] yum.repos.d]# mv *.repo repo_bak/[[email 988365@gmail.com] yum.repos.d]# lsrepo_bak复制具体代码如下下载新的CentOS-Base.repo 到/etc/yum.repos.d/ wget -O /etc/yum.repos.d/CentOS-Base.repo复制具体代码如下[[email 988365@gmail.com] yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo--2018-02-09 16:33:46-- http://mirrors.aliyun.com/repo/Centos-7.repoResolving mirrors.aliyun.com (mirrors.aliyun.com)... 124.14.2.234, 124.14.2.235, 124.14.2.217, ...Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|124.14.2.234|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 2573 (2.5K) [application/octet-stream]Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo'100%[========================================================================================>] 2,573 --.-K/s in 0s 2018-02-09 16:33:47 (182 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo' saved [2573/2573][[email 988365@gmail.com] yum.repos.d]# lsCentOS-Base.repo repo_bak复制具体代码如下之后运行yum clean all 清除缓存,运行 yum makecache 天生新的缓存[[email 988365@gmail.com] yum.repos.d]# yum clean allLoaded plugins: fastestmirrorCleaning repos: base extras updatesCleaning up everythingMaybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed reposCleaning up list of fastest mirrors[[email 988365@gmail.com] yum.repos.d]# yum makecacheLoaded plugins: fastestmirrorbase | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/12): base/7/x86_64/group_gz | 156 kB 00:00:00 (2/12): extras/7/x86_64/filelists_db | 636 kB 00:00:07 (3/12): extras/7/x86_64/primary_db复制具体代码如下以上就是本文的全部内容,希望对大驾的学习有所帮助,也希望大驾多多支持脚本之家。 免责声明:如果侵犯了您的权益,请联系咱们,咱们会及时删除侵权内容,谢谢合作! |
Nginx源码研究之nginx限流模块详解