修改主机名
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=local01 ### //不能以数字开头,标点只能用减号-
修改主机名和IP的映射关系
vim /etc/hosts
192.168.1.101 local01