1、如何重新启动centos6网卡:服务网络重启
如何重新启动centos7网卡:系统重新启动网络
2、centos重启网口方法:
关闭网卡端口: ifdown eth0或ifconfig eth0 down
启动网卡: ifup eth0或ifconfig eth0 up
3、配置网卡ip
增加IP:ifcfgeth 0a DD 192.168.1.251/24
IP :删除ifcfgeth0del 192.168.1.251/24或ifcfg eth0 stop
4、DNS配置文件: cat /etc/resolv.conf
5、关闭防火墙,设置不通电
查看防火墙状态: systemctlstatusfirewalld.service
关闭: systemctl stop firewalld
打开:系统启动防火墙d
自动断电: systemctl disable firewalld
自动启动: systemctl enable firewalld
检查是否开机启动: chkconfig-- list|grep network (rhle6) ) ) ) ) ) ) ) )。
6、暂时永久关闭Selinux
暂时关闭:
#获取基础设施
增强功能
#setenforce 0
setenforce : selinuxisdisabled
永久关闭:
#vim /etc/selinux/config