CentOS cannot access the Internet normally after installation mainly because the gateway in the directory /etc/sysconfig/network-scripts/ is in the No state. This requires changing it to yes:
1. First enter /etc/sysconfig/network-scripts/, find the file ifcfg-eno (the number after the file is random, and different computers have different numbers after installation), and use the vim/vi editor to open the file ;
2. After configuring wq, save and exit. At this time, the network configuration still does not take effect. You need to restart the network service service network restart
Ok! Done
The above is the detailed content of I cannot access the Internet after CentOS is installed. How to solve the problem?. For more information, please follow other related articles on the PHP Chinese website!