centos7的网卡如何重启


本文摘自PHP中文网,作者藏色散人,侵删。

下面由centos教程栏目给大家介绍centos7的网卡重启方法,希望对需要的朋友有所帮助!

centos7的网卡重启方法

1、centos6的网卡重启方法:service network restart

centos7的网卡重启方法:systemctl restart network

2、DNS配置文件:cat /etc/resolv.conf

设置主机和IP绑定信息:cat /etc/hosts

设置主机名:cat /etc/hostname

3、可以使用nmtui文本框方式修改IP

4、关闭防火墙并设置开机不启动

查看防火墙状态:systemctl status firewalld.service

关闭:systemctl stop firewalld

开启:systemctl start firewalld

开机自动关闭:systemctl disable firewalld

开机自动启动:systemctl enable firewalld

查看开机是否启动:chkconfig --list|grep network(RHLE6)

5、临时和永久关闭Selinux

临时关闭:

1

2

3

4

_getenforce

Enforcing

_setenforce 0

setenforce:SELinux is disabled

永久关闭:

1

_vim /etc/selinux/config

更多centos技术文章,请访问centos入门教程栏目!

以上就是centos7的网卡如何重启的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

CentOS7如何安装php扩展

CentOS7上elastic search安装详解

linux之CentOS7系统加固知识点小结

CentOS7下ping不通外网

CentOS7系统无法使用yum命令怎么办

CentOS7怎么添加新用户

CentOS7无法联网

怎么解决CentOS7忘记root密码的问题

CentOS7安装完毕后无法联网的解决方法

如何解决CentOS7连接网络不可达

更多相关阅读请进入《CentOS7》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...