CentOS 6.9 修改 hostname # vim /etc/sysconfig/networkHOSTNAME=L13-ThinkPad # vim /etc/hosts127.0.0.1 L13-ThinkPad reboot 即可