1、修改 /etc/sysconfig/networkvi /etc/sysconfig/networkNETWORKING=yesHOSTNAME=carel(carel为计算机名)2、修改 /etc/hostsvi /etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost192.168.1.120 carel carel (carel为计算机名称)3、重启电脑init 6