centos could not retrieve mirrorlist
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Sweet Potato Yao June 1, 2016 11:57:56 Wednesday
http://fanshuyao.iteye.com/
1. Problem description
After installing CentOS-7-x86_64-Minimal-1511.iso, use the command
yum install net-tools 或 yum -y install wget
提示could not retrieve mirrorlist
I found many reasons on the Internet and said that the /etc/resolv.conf file needs to be configured, and the file is added
nameserver 8.8.8.8
But neither worked.
Second, the solution
is to enter /etc/sysconfig/network-script/
Modify the file ifcfg-eno16777736 (the digital department may be different), as shown in the following figure
Change onboot to yes, as shown below
then restart the network
Then execute the command to install.
yum -y install wget
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Sweet Potato Yao June 1, 2016 11:57:56 Wednesday
http://fanshuyao.iteye.com/