遇到的问题:安装Apache时报错
Loaded plugins: fastestmirror, security Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28, ‘Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds’) Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
1.后来发现网卡配置信息中没有写入DNS(域名系统),编辑对应的网卡
vim /etc/sysconfig/network-scripts/ifcfg-eth0
免费的域名系统
114.114.114.114
8.8.8.8