1 查看自己的主机名
# hostname
centos.6.7
2 添加自己的主机名到/etc/hosts文件
127.0.0.1 centos.6.7 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# hostname
centos.6.7
127.0.0.1 centos.6.7 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6