1、修改 /etc/sysconfig/network
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=carel(carel為計算機名)
2、修改 /etc/hosts
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.120 carel carel (carel為計算機名稱)
3、重啟電腦
init 6