1、如何重新启动centos6网卡:服务网络重启
如何重新启动centos7网卡:系统重新启动网络
2、DNS配置文件: cat /etc/resolv.conf配置主机和IP绑定信息: cat /etc/hosts
设置主机名: cat /etc/hostname
3、可通过nmtui文本框方式修改IP 4,关闭防火墙,设置为开机不启动即可查看防火墙状态: systemctlstatusfirewalld.service
关闭: systemctl stop firewalld
打开:系统启动防火墙d
自动断电: systemctl disable firewalld
自动启动: systemctl enable firewalld
检查是否开机启动: chkconfig-- list|grep network (rhle6) ) ) ) ) ) ) ) )。
5、暂停和永久停止Selinux暂停:
_getenforce
增强功能
_setenforce 0
setenforce : selinuxisdisabled
永久关闭:
_vim /etc/selinux/config