Queries host name:
[root@localhost ~]# hostname
localhost.localdomain
[Root @ localhost ~] # vim / etc / sysconfig / network Modify the hostname
[Root @ localhost ~] # vim / etc / hOsts modify the mapping between IP addresses and host names of all