CentOS_7_ yum error, Could not retrieve mirrorlist

Enter image descriptionReason: resolv.conf is not configured Solution: go to /etc directory and configure resolv.conf to add nameserver IP, such as: nameserver 8.8.8.8 search localdomain

Save and run the above command again.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325651920&siteId=291194637