当前位置: 首页 > wzjs >正文

怎么做微帮网站免费培训机构

怎么做微帮网站,免费培训机构,企业网站制作服务,028网站建设Centos6配置yum源 为Centos6配置CentOS Vault源—防止yum源过期为Centos6配置epel源为Centos6配置ELRepo源---已ELRepo被官方清空Centos6安装dockerdocker配置国内镜像加速 为Centos6配置CentOS Vault源—防止yum源过期 参考:https://mirrors.ustc.edu.cn/help/cen…

Centos6配置yum源

    • 为Centos6配置CentOS Vault源—防止yum源过期
    • 为Centos6配置epel源
    • 为Centos6配置ELRepo源---已ELRepo被官方清空
    • Centos6安装docker
      • docker配置国内镜像加速

为Centos6配置CentOS Vault源—防止yum源过期

参考:https://mirrors.ustc.edu.cn/help/centos.html
CentOS 6系统于2020年11月30日停止维护服务,如有需要继续使用 CentOS6,请使用 CentOS Vault 镜像源。

mkdir -p /etc/yum.repos.d/bak# 备份旧的源文件
mv /etc/yum.repos.d/*.bak /etc/yum.repos.d/bak# 编辑
vi /etc/yum.repos.d/CentOS-Vault.repo

源内容如下:

[base]
name=CentOS-6.10 - Base - mirrors.aliyun.com
failovermethod=priority	
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6#released updates
[updates]
name=CentOS-6.10 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/updates/$basearch/
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful
[extras]
name=CentOS-6.10 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/extras/$basearch/
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users
[contrib]
name=CentOS-6.10 - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

结果验证

# 安装vim
yum install -y vim

在这里插入图片描述


为Centos6配置epel源

# 手动编辑epel.repo文件
vim /etc/yum.repos.d/epel.repo
  • 阿里云的epel源
    https://developer.aliyun.com/mirror/epel?spm=a2c6h.13651102.0.0.3e221b11ILV8ex
# 阿里云的epel源
[epel-aliyun]
name=epel-aliyun-CentOS-$releasever
baseurl=https://mirrors.aliyun.com/epel-archive/$releasever/$basearch/
gpgcheck=0

结果验证

# 从epel源安装htop
yum install -y htop

在这里插入图片描述


为Centos6配置ELRepo源—已ELRepo被官方清空

在这里插入图片描述

# 编辑/etc/yum.repos.d/elrepo.repo
vim /etc/yum.repos.d/elrepo.repo

elrepo.repo具体内容如下:

### Name: ELRepo.org Community Enterprise Linux Repository for el6
### URL: https://elrepo.org/[elrepo]
name=ELRepo.org Community Enterprise Linux Repository - el6
baseurl=https://mirrors.aliyun.com/elrepo/elrepo/el6/$basearch/
#mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo.el6
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0[elrepo-kernel]
name=ELRepo.org Community Enterprise Linux Kernel Repository - el6
baseurl=https://mirrors.aliyun.com/elrepo/kernel/el6/$basearch/
#mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-kernel.el6
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0[elrepo-extras]
name=ELRepo.org Community Enterprise Linux Extras Repository - el6
baseurl=https://mirrors.aliyun.com/elrepo/extras/el6/$basearch/
#mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-extras.el6
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0

Centos6安装docker

CentOS 6.5 (64-bit) 或更高的版本,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。
Centos6的内核支持的docker最高版本是:docker-engine-1.7.1-1.el6.x86_64.rpm
免积分下载docker的rpm包: https://download.csdn.net/download/omaidb/90522506

# 安装docker
yum install  -y ./docker-engine-1.7.1-1.el6.x86_64.rpm

在这里插入图片描述

# 启动docker服务
service docker start
# 查看docker版本
docker version

在这里插入图片描述


docker配置国内镜像加速

vim /etc/sysconfig/docker

配置内容如下

other_args="--registry-mirror=https://docker.1ms.run"

验证搜索镜像

docker search docker.1ms.run/${镜像名称}

在这里插入图片描述

# 拉取镜像
docker pull nginx

在这里插入图片描述

http://www.dtcms.com/wzjs/160008.html

相关文章:

  • 如何上传安装网站模板做网站公司哪家正规
  • nginx rewrite wordpress百度搜索优化平台
  • wp网站模板安装股票指数是什么意思
  • php动态网站开发习题答案宁波专业seo外包
  • 苏州吴江做网站公司歌尔股份砍单
  • 如何写wordpress主题软件网站关键词优化
  • 网站建设张家港北京sem
  • 网站怎么做交易网站域名备案信息查询
  • 金山手机网站建设网站服务器搭建
  • 做网站沈阳本地游戏网站交换友情链接
  • 做商业地产常用的网站惠州网站seo排名优化
  • 国内个人网站欣赏软件开发工资一般多少
  • 网站建设找至尚网络优化网站内容的方法
  • 企业网站建设需要哪些东西免费建网站
  • 霸州网站制作百度怎么收录网站
  • 乐清公司做网站刷赞网站推广免费链接
  • 龙岗菠菜网站建设广东seo外包服务
  • 网站规划与建设进度全达seo
  • 网站工作建设站电话百度一下网页版浏览器百度
  • 做家教的正规网站奶糖 seo 博客
  • 以网站域名做邮箱千锋教育地址
  • 佛山黄页大全佛山本地信息网seo是什么简称
  • 饥荒网站这么做链接推广
  • 网站建设日语怎么说项目营销推广策划
  • 深圳专业网站制作平台aso推广优化
  • 网页二级页面怎么做汕头网站建设方案优化
  • php在网站制作中的运行机制今日热点新闻一览
  • 自己做首饰的好网站南昌seo网站管理
  • 三台建设局网站网站seo综合查询
  • 经营性网站备案要求海南百度总代理