首页 > 其他 > 详细

centos配置163源

时间:2015-11-25 22:16:09      阅读:188      评论:0      收藏:0      [点我收藏+]

1.参考Centos镜像帮助

(1.1)备份原始repo

shell> sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

(1.2)下载163 repo,放入 /etc/yum.repos.d/ ,并修改文件名称

shell > sudo cd /etc/yum.repos.d/
shell > sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
shell > sudo mv CentOS7-Base-163.repo CentOS-Base.repo

ps: 相关repo地址  

centos7 : http://mirrors.163.com/.help/CentOS7-Base-163.repo

centos6 : http://mirrors.163.com/.help/CentOS6-Base-163.repo

centos5 : http://mirrors.163.com/.help/CentOS5-Base-163.repo

(1.3)生成缓存

shell> sudo yum clean all
shell > sudo yum makecache

2. 相关链接

 官方主页: http://www.centos.org/ 

 邮件列表: http://www.centos.org/modules/tinycontent/index.php?id=16

 论坛: http://www.centos.org/modules/newbb/

 文档: http://www.centos.org/docs/

 Wiki: http://wiki.centos.org/

 镜像列表: http://www.centos.org/modules/tinycontent/index.php?id=32

centos配置163源

原文:http://www.cnblogs.com/javaDeveloper/p/4995845.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!