Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to turn off the firewall in CentOS and how to solve the problem that the network card cannot be found?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains how to turn off the firewall in CentOS and how to solve the problem of not finding a network card. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to turn off the firewall in CentOS and how to solve the problem that you can't find a network card.

Turn off the firewall:

After newly installing CentOS Linux, it is found that it cannot be accessed after configuring apache, which is probably due to a firewall problem.

The code is as follows:

/ etc/init.d/iptables status

You will get a series of messages indicating that the firewall is on.

The code is as follows:

/ etc/init.d/iptables stop

Permanently close:

The code is as follows:

Chkconfig-level 35 iptables off

Resolve that the network card cannot be found:

Install centOS in the virtual machine, the network connection appears normal, but can not ping, also can not surf the Internet, exactly where is the wrong setting? Is it a centOS problem or a virtual machine problem?

Please turn off the iptables firewall first, and then check which network card your IP is configured on.

The code is as follows:

Ifconfig / all

Check whether the IP you configured is valid, and check cat / etc/sysconfig/network-scripts/ifcfg-eth0

The code is as follows:

ONBOOT=yes

; after Centos setting IP is completed

Just restart the network card:

The code is as follows:

Service network restart

At this point, I believe you have a deeper understanding of "how to turn off the firewall in CentOS and how to solve the problem of not finding a network card". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report