CentOS 6.9 修改 hostname

# vim /etc/sysconfig/network

HOSTNAME=L13-ThinkPad

# vim /etc/hosts

127.0.0.1 L13-ThinkPad

reboot 即可