1./etc/sysconfig/network-scripts/ifcfg-etho 修改IPADDR地址(避免重复),如下所示
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.174.141
NETMASK=255.255.255.0
DNS1=114.114.114.114
GATEWAY=192.168.174.2
2./etc/sysconfig/network 修改主机名(HOSTNAME),如下所示:
NETWORKING=yes
HOSTNAME=partner05
3./etc/udev/rules.d/70-persistent-net.rules 删除此配置文件,然后在命令行输入reboot,重启后服务就正常联网了