一.设置主机名 vim /etc/hostname 二.添加IP地址与主机名的映射 vim /etc/hosts 三.配置IP地址 vim /etc/sysconfig/network-scripts/ifcfg-ens32 四.reboot重启