*The obvious manifestations of not being able to connect to the Internet are:
1. Error: cannot find a valid baseurl or repo:base appears in yum install
2. Ping host will prompt unknown host
Method 1.
1. Open vi /etc/sysconfig/network-scripts/ifcfg -eth0 (each machine may be different, but the format will be "ifcfg-eth number"), change ONBOOT=no to ONBOOT=yes
2. Restart the network: service network restart
Method 2.
1. Open vi /etc /resolv.conf, add nameserver 8.8.8.8
2. Restart the network: service network restart
After installing the CentOS7 text interface version, the Internet cannot be connected, and the yum installation software prompts cannot find a valid baseurl for repo:base/7/x86_
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326307520&siteId=291194637
Recommended
Ranking