Home >Operation and Maintenance >CentOS >How to connect to the Internet for the first time in centos7
When I use CentOS7 for the first time, everything is installed. Switch from the command line to the desktop and use firefox to see if I can access the Internet.
Sure enough, when you worry about something, it will happen, Murphy's Law.
Getting to the point, how can CentOS7 be able to access the Internet? Generally, there are two situations in which the Internet cannot be accessed:
1.ONBOOT is set to no
* The files marked in red are different for each machine
Open the file with vi and change ONBOOT=no to ONBOOT=yes
##Save and exit (1 .esc 2 :wq 3. Enter)Restart network Test whether you can access the Internet, just ping Baidu Recommended tutorial: "CentOS Tutorial"
The above is the detailed content of How to connect to the Internet for the first time in centos7. For more information, please follow other related articles on the PHP Chinese website!