Home > Article > Operation and Maintenance > How to restart centos7 network card
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!
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
Permanently closed:
_vim /etc/selinux/config
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!