zoukankan      html  css  js  c++  java
  • centos8 yum替换阿里源

    解决centos7使用yum安装mysql 下载速度慢的问题
    挺好用的,之前用腾讯云安装了半天,太慢了,改过之后速度快多了。
    1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    2、下载ailiyun的yum源配置文件到/etc/yum.repos.d/
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
    3、运行yum makecache生成缓存
    yum makecache
    4、这时候再更新系统就会看到以下mirrors.aliyun.com信息
    yum -y update
    已加载插件:fastestmirror, refresh-packagekit, security
    设置更新进程Loading mirror speeds from cached hostfile
    * base: mirrors.aliyun.com
    * extras: mirrors.aliyun.com
    * updates: mirrors.aliyun.com
     
     
    如果你觉得以上步骤麻烦可以执行我的一键脚本
    curl -O http://dshvv.oss-cn-beijing.aliyuncs.com/ialiyum.sh && chmod 755 ./ialiyum.sh && ./ialiyum.sh  && rm -rf ./ialiyum.sh

    (其它一键系列: https://www.cnblogs.com/dshvv/p/13129975.html)



  • 相关阅读:
    JavaSE-方法覆盖的注意事项
    underscore.js源码研究(4)
    underscore.js源码研究(3)
    移动端font-size适配方案
    控制台引入想要的库
    页面布局与编写(续3)
    underscore.js源码研究(2)
    全屏使用swiper.js过程中遇到的坑
    模块加载
    underscore.js源码研究(1)
  • 原文地址:https://www.cnblogs.com/dshvv/p/14423739.html
Copyright © 2011-2022 走看看