CentOS 7 YUM配置

CentOS 7 YUM配置

Shawn Yan Lv.6

实验环境信息

CentOS Linux release 7.4.1708 (Core)

下面是yum仓库阿里云代理的配置方式。

Mirror

  • aliyun-centos
1
2
3
4
5
6
7
cat >> centos-aliyun.repo << EOF
[centos-aliyun]
name=centos-aliyun
baseurl=https://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/
enable=1
gpgcheck=0
EOF
  • aliyun-epel
1
2
3
4
5
6
7
cat >> epel-aliyun.repo << EOF
[epel-aliyun]
name=epel-aliyun
baseurl=https://mirrors.aliyun.com/epel/7/x86_64/
enable=1
gpgcheck=0
EOF
  • aliyun-docker-ce
1
2
3
4
5
6
7
cat >> docker-ce-aliyun.repo << EOF
[docker-ce-aliyun]
name=docker-ce-aliyun
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
enable=1
gpgcheck=0
EOF

Reference

  • Title: CentOS 7 YUM配置
  • Author: Shawn Yan
  • Created at: 2018-04-08 15:01:01
  • Updated at: 2018-04-08 15:01:01
  • Link: https://shawnyan.cn/2018/centos/centos-7-yum-repo/
  • License: This work is licensed under CC BY-NC-SA 4.0.
if (hexo-config('comment.enable') == true && hexo-config('comment.system') != "") { if (hexo-config('comment.system') == "waline") { @require "./waline.styl" } else if (hexo-config('comment.system') == "gitalk") { @require "./gitalk.styl" } else if (hexo-config('comment.system') == "twikoo") { @require "./twikoo.styl" } } .comments-container display inline-block margin-top $spacing-unit width 100% #comment-anchor width 100% height 10px .comment-area-title width 100% margin 10px 0 font-size 1.38rem color var(--default-text-color) font-family 'Consolas', '宋体', sans-serif font-weight bold i color var(--default-text-color) +redefine-tablet() margin 5px 0 font-size 1.2rem