[root@localhost ~]# cd /etc/sysconfig/ [root@localhost sysconfig]# vim network 1.查看hostname 2.修改/etc/hosts文件 3.restart