在虚拟中yum install gcc 老提示404
在网搜索到上海交通大学的yum repository设置
再yum install gcc
提示:http://ftp.sjtu.edu.cn/centos/5/addons/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, '/xe5/x9f/x9f/xe5/x90/x8d/xe8/xa7/xa3/xe6/x9e/x90/xe6/x9a/x82/xe6/x97/xb6/xe5/xa4/xb1/xe8/xb4/xa5')>
发现是没有打开Vmware NAT Service服务导致我的虚拟机不能域名解析。Vmware NAT Serveric开启后就正常了
rpm -import http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5