Translate

Thursday, 17 January 2013

How to change the Linux server name (hostname) ..

How to change the Linux server name (hostname) ..

To set the hostname just type the command hostname with name of server

# hostname test7

to check the hostname of server

[root@localhost ~]# hostname
test7
[root@localhost ~]#
Now this is not permanent , once you reboot the system it will change to previous name.

To set permanent hostname put the enytry in /etc/sysconfig/network file

#vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=test7
wq!
#
 

No comments:

Post a Comment