1. CentOS下修改DNS配置文件,设置为北邮的IPv6 DNS服务器 :[root@localhost ~]# cat /etc/resolv.conf nameserver 2001:da8:202:10::362. 修改更新源配置文件:[root@localhost ~]# vi /etc/yum.repos.d/CentOS-Base.repo a. 注释掉 mirrorlist选项b. 取消注释 baseurl选项c. 修改配置文件中的URL为北交更新源地址.d. yum update 即可e. 安装文件: yum install PACKAGENAME
# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the# remarked out baseurl= line instead.# http://www.linuxidc.com#
[base]name=CentOS-$releasever - Base#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=osbaseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates[updates]name=CentOS-$releasever - Updates#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=updatesbaseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful[extras]name=CentOS-$releasever - Extras#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=extrasbaseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=centosplusbaseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contrib#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=contribbaseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6CentOS 6 IPv6 关闭方法CentOS IPv6设置相关资讯 IPv6
- 如何确保你的 APP 支持 IPv6 (今 20:24)
- 苹果强推IPv6,你的App符合新规吗 (05月12日)
- NetworkManager和IPv6网络的隐私 (12/07/2015 17:00:18)
| - Let’s Encrypt完整支持IPv6 (07月27日)
- IPv6 发布20年后,普及度终突破 10 (01月05日)
- 如何限定apt-get使用IPv4或IPv6协 (09/21/2015 07:11:36)
|
本文评论 查看全部评论 (0)