下面由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
临时关闭:
_getenforce Enforcing _setenforce 0 setenforce:SELinux is disabled
永久关闭:
_vim /etc/selinux/config
以上就是“centos7的网卡如何重启 centos7网卡重启”的详细内容,更多请关注1818ip网其它相关文章!
相关文章
标签:CentOS
- •centos中的uuid是必须的吗 centos安装minicom必须联网吗
- •centos如何查看用户 centos如何查看用户密码
- •centos重启后时间不对怎么办 centos时间不同步怎么解决
- •如何解决centos7下chrome打不开的问题 centos安装chrome
- •centos下ping不通网关怎么办 centos ping不通网关怎么解决
- •centos7系统找不到网卡 centos7装完系统找不到网卡
- •centos中pear命令无法使用怎么办 pear是什么意思
- •centos怎么实现开机进入命令行模式 centos7开机进入命令行模式
- •centos无法进入图形界面怎么解决 centos无法进入图形界面
- •centos默认用户名密码是什么 centos默认用户名密码