站点:https://opsx.alibaba.com/mirror

#阿里云base

 cat  /etc/yum.repos.d/alibase.repo
[rhel7]
name=ali-base
baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/
enabled=1
gpgcheck=0

#阿里云epel

 #cat  /etc/yum.repos.d/aliepel.repo
[epel]
name=ali-epel
baseurl=https://mirrors.aliyun.com/epel/7/x86_64/
enabled=1
gpgcheck=0

#阿里云extras

 cat  /etc/yum.repos.d/aliextras.repo
[extras]
name=ali-extras-centos 7
baseurl=https://mirrors.aliyun.com/centos/7/extras/x86_64/
enabled=1
gpgcheck=0

#阿里云update

 [update]
name=aliyun
baseurl=https://mirrors.aliyun.com/centos/7/updates/x86_64/
enabled=
gpgcheck=

#阿里云openstack

 cat aliopenstack.repo
[openstack-ocata]
name=openstack-ocata
baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-ocata/
enabled=1
gpgcheck=0 [openstack-pike]
name=openstack-pike
baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-pike/
enabled=1
gpgcheck=0 [openstack-queens]
name=openstack-queens
baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-queens/
enabled=1
gpgcheck=0 [openstack-rocky]
name=openstack-rocky
baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-rocky/
enabled=1
gpgcheck=0

站点:http://mirrors.163.com

 [base]
name=CentOS-7 - Base - 163.com
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 [updates]
name=CentOS-7 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/7/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
   [extras]
name=CentOS-7 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/7/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
   [centosplus]
name=CentOS-7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

实现yum服务站点:

 yum -y install httpd
mkdir -p /var/www/html/rhel6.5/dvd
vim /etc/fstab
/home/rhel-server-6.5-x86_64-dvd.iso /var/www/html/rhel6.5/dvd iso9660 defaults 0 0
mount -a
df -h |grep rhel6
service httpd start

最新文章

  1. 手动删除portal中托管服务。
  2. Mac OSX 无法SSH远程的原因
  3. MySQL 5.7 深度解析: 半同步复制技术
  4. //暴力打开某个APP iOS 私有API LSApplicationWorkspace
  5. JPA 批量新增
  6. ios framework通用库的制作
  7. [原创作品]手把手教你怎么写jQuery插件
  8. Hadoop概论
  9. 使用vue+flask做全栈开发的全过程(实现前后端分离)
  10. decimal扩展方法(转换为字符串,去掉末尾的0)
  11. es6 filter() 数组过滤方法总结
  12. Axure中继器的应用场景和结构组成
  13. win10磁盘/cpu占用100%问题
  14. Linux系统命令缩写
  15. 注解(Annotation)
  16. vue中mounted中无法获取到dom元素
  17. Redis散列操作
  18. 展示博客(Alpha版本)
  19. MyBatis的一级缓存和二级缓存简介笔记
  20. Swing的概述

热门文章

  1. 在swt中获取jar包中的文件 uri is not hierarchical
  2. 完毕乔布斯的梦想:一个免费wifi共享的乌托邦
  3. hdu 1978 记忆化搜索
  4. android:Activity启动模式之singleTask(一)
  5. LeetCode 之 Merge Sorted Array(排序)
  6. zoj 3820 Building Fire Stations (二分+树的直径)
  7. Android JNI和NDK学习(09)--JNI实例二 传递类对象
  8. 如何解读「量子计算应对大数据挑战:中国科大首次实现量子机器学习算法」?——是KNN算法吗?
  9. 131.lambda表达式小结
  10. [C++] upper_bound和lower_bound