(转载)CentOS 6.5使用aliyun镜像来源
2017-11-20 21:04
218 查看
(原地址:http://www.linuxidc.com/Linux/2014-09/106675.htm)
当我们把CentOS 6.5安装好以后,可以使用这个脚本来使用国内的阿里云镜像源
有了国内的源地址,后面安装东西就方便了。
搜索docker,可以看到docker-io.x86_64和docker-registry.noarch,安装docker就简单了。
当我们把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.
相关文章推荐
- CentOS6.5环境下使用镜像文件搭建本地yum源
- Centos6.5 使用光盘镜像系统源安装数据库mysql5.7
- 在centos7中使用supermin制作centos6.5docker镜像
- [转载并对错误进行了修正]CentOS-6.5 Final上MongoDB安装及使用,适用于CentOS-6.3
- 使用kvm制作Eucalyptus镜像(CentOS 6.5为例)
- Centos6.5下使用docker创建centos6.5镜像文件,运行sshd+httpd
- Centos6.5使用yum安装mysql——快速上手必备(转载)
- 使用kvm制作Eucalyptus镜像(CentOS 6.5为例)
- centos6.3 (本人使用6.5) 配置jdk 环境变量【转载】
- CentOS 6.5 更新163源(转载)
- 转载:centos7下使用yum安装mysql
- linux 将用户(PeersLee)加入[sudo]用户组(centos 6.5默认该组没有此用户)|| 免密码使用【sudo】
- CentOS 6.5平台使用CLion开发程序,编译器支持C++11的方法
- CentOS 6.5 Docker自制CentOS镜像
- 学习Hadoop 使用虚拟机安装CentOS6.5 专治NetworkManager 找不到eth0
- CentOS6.5使用createrepo搭建本地源
- Linux中SVN服务器安装与使用以及windows客户端的使用(CentOS-6.5)
- centos6.5本地yum源搭建及使用方法
- centOS6.5 修改catalina.sh使用crontab自动切割日志tomcat8
- (转载)RHEL/CentOS 5.5使用第三方软件库(EPEL与RPMForge、RPMFusion软件库)