• centos6.8的坑


    1.最近弄了一批centos系统,是6.8的,结果很多东西无法安装,因为yum源各大厂都下掉了,最后找到了搜狐,还没有下掉,最后建议大家还是最低用centos7吧!!!

    清空 /etc/yum.repos.d下所有

    vi CentOS-Base.repo

    [base] 
    name=Base 
    baseurl=http://mirrors.sohu.com/centos/6/os/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
        
    [updates] 
    name=Updates 
    baseurl=http://mirrors.sohu.com/centos/6/updates/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 
        
    [extras] 
    name=Extras 
    baseurl=http://mirrors.sohu.com/centos/6/extras/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 
        
    [centosplus] 
    name=centosplus 
    baseurl=http://mirrors.sohu.com/centos/6/centosplus/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 
        
    [contrib] 
    name=Contrib 
    baseurl=http://mirrors.sohu.com/centos/6/contrib/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6 
        
    [fasttrack] 
    name=fasttrack 
    baseurl=http://mirrors.sohu.com/centos/6/fasttrack/x86_64/ 
    gpgcheck=1 
    gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-

    生成缓存

    yum clean all

    yum makecache

    后面正常yum install xxxx

  • 相关阅读:
    编写高质量的代码,改善c#程序的157个建议_之1~10
    文件指针创建失败!File *fp失败
    一拜天地
    现金流中的机会,及其评估(摘抄)
    隐藏Mac Dock 中的某个图标
    vim快捷方式
    mac 快捷键
    mysql explain
    druid 连接池配置
    分布式数据库中间件
  • 原文地址:https://www.cnblogs.com/lingwang3/p/14549683.html
Copyright © 2020-2023  润新知