centos6.5 修改主机名 第一步: hostname tyzZ.com 第二步: 修改/etc/sysconfig/network中的hostname 第三步: 修改/etc/hosts文件 最后重启系统。