How Do I Check Whether Host Names in the SUSE Linux System Files Are the Same
Question
If the server host name is modified incompletely before Database is installed, the host names in the SUSE Linux system files will be different.
How do I check whether the host names in the SUSE Linux system files are the same?
Answer
- Log in to the SUSE Linux server and run the following command to view the host name in the system file.
# uname -a
Information similar to the following is displayed:
Linux eSightServer 3.0.101-0.47.99-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux
The host name is eSightServer.
- Run the following command to view the host name in the system file.
# more /etc/hosts
Information similar to the following is displayed:
# # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fc00::0 ipv6-localnet fc01::0 ipv6-mcastprefix fc02::1 ipv6-allnodes fc02::2 ipv6-allrouters fc02::3 ipv6-allhosts 10.137.59.36 eSightServer eSightServer
The host name is eSightServer.
- Check whether the two host names are the same. If they are different, contact SUSE Linux system administrator.