How to restart centos7 network card

藏色散人
Release: 2020-08-12 17:31:10
forward
6178 people have browsed it

The following column centos tutorial will introduce to you the centos7 network card restart method. I hope it will be helpful to friends in need!

How to restart centos7 network card

centos7 network card restart method

1. Centos6 network card restart method: service network restart

centos7 Network card restart method: systemctl restart network

2. DNS configuration file: cat /etc/resolv.conf

Set host and IP binding information: cat /etc/hosts

Set the host name: cat /etc/hostname

3. You can use the nmtui text box to modify the IP

4. Turn off the firewall and set it not to start at boot

View the firewall Status: systemctl status firewalld.service

Close: systemctl stop firewalld

Open: systemctl start firewalld

Automatically close at boot: systemctl disable firewalld

Automatically at boot Start: systemctl enable firewalld

Check whether it starts at boot: chkconfig --list|grep network(RHLE6)

5. Temporary and permanent shutdown of Selinux

Temporary shutdown:

_getenforce
Enforcing
_setenforce 0
setenforce:SELinux is disabled
Copy after login

Permanently closed:

_vim /etc/selinux/config
Copy after login

For more centos technical articles, please visit the centos Getting Started Tutorial column!

The above is the detailed content of How to restart centos7 network card. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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