zoukankan      html  css  js  c++  java
  • (转载)CentOS 6.5使用aliyun镜像来源

    (原地址:http://www.linuxidc.com/Linux/2014-09/106675.htm)

    当我们把CentOS 6.5安装好以后,可以使用这个脚本来使用国内的阿里云镜像源

    #!/bin/bash
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
    mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
    yum makecache
    

      

    有了国内的源地址,后面安装东西就方便了。 
    搜索docker,可以看到docker-io.x86_64和docker-registry.noarch,安装docker就简单了。

    [root@localhost ~]# yum search docker
    
    
    
    
     Loaded plugins: fastestmirror
     Loading mirror speeds from cached hostfile
     ======================================================== N/S Matched: docker =========================================================
     python-docker-py.x86_64 : An API client for docker written in Python
     docker-io.x86_64 : Automates deployment of containerized applications
     docker-registry.noarch : Registry server for Docker
     Fedora-dockerfiles.noarch : Example dockerfiles to assist standing up containers quickly
     imagefactory-plugins-Docker.noarch : Cloud plugin for Docker
     docker.x86_64 : KDE and GNOME2 system tray replacement docking application
    
    
      Name and summary matches only, use "search all" for everything.
    

     

  • 相关阅读:
    HTTP 错误 404.2
    SQL Server 2008 R2如何开启数据库的远程连接(转)
    CSS中font-family:中文字体对应的英文名称
    15/18位身份证号码正则表达式(详细版)
    C#获取系统时间及时间格式
    C#正则表达式判断输入日期格式是否正确
    Linux查看机器负载
    模拟HTTP请求超时时间设置
    MySQL show命令的用法
    innodb事务隔离级别
  • 原文地址:https://www.cnblogs.com/life-for-test/p/7868243.html
Copyright © 2011-2022 走看看