Home > Operation and Maintenance > CentOS > How to connect to the Internet for the first time in centos7

How to connect to the Internet for the first time in centos7

hzc
Release: 2020-06-13 16:56:29
Original
6096 people have browsed it

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

How to connect to the Internet for the first time in centos7

* The files marked in red are different for each machine

Open the file with vi and change ONBOOT=no to ONBOOT=yes

How to connect to the Internet for the first time in centos7

##Save and exit (1 .esc 2 :wq 3. Enter)

Restart network

How to connect to the Internet for the first time in centos7

Test whether you can access the Internet, just ping Baidu

How to connect to the Internet for the first time in centos7

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template