网易开源镜像站在国内来说是最稳当的镜像站和阿里云的镜像站是旗鼓相当的,这里单独说明一下在ECS CentOS系统如何将yum源设置网易开源镜像站。
1、首选对系统默认的镜像文件备份 [root@iZ23idnojanZ ~]# cd /etc/yum.repos.d/ [root@iZ23idnojanZ yum.repos.d]# mkdir bak [root@iZ23idnojanZ yum.repos.d]# mv * bak mv: cannot move ‘bak’ to a subdirectory of itself, ‘bak/bak’ 2、下载网易的镜像文件 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
3、刷新yum [root@iZ23idnojanZ yum.repos.d]# yum clean all Loaded plugins: langpacks Cleaning repos: base extras updates Cleaning up everything 4、安装gcc测试 yum -y install gcc就行了 (责任编辑:IT) |