配置静态IPlinux
vi /etc/sysconfig/network-scripts/ifcfg-eno16777984
IPADDR=**** GATEWAY=**** NETMASK=255.255.255.0
配置DNScode
vi /etc/resolv.conf
nameserver ****
查看防火墙状态server
firewall-cmd --state
中止firewallip
systemctl stop firewalld.service
禁止firewall开机启动ci
systemctl disable firewalld.service
关闭selinux
进入到/etc/selinux/config文件cmd
vi /etc/selinux/config
将SELINUX=enforcing改成SELINUX=disabled配置
修改主机名称network
hostnamectl set-hostname xxx