Wednesday, May 26, 2010

How to make a permanent hostname for a redhat linux system

To make a permanent hostname for a redhat linux system, edit the following file
# vi /etc/sysconfig/network
HOSTNAME=station1.example.com

save this file. Now check the file /etc/hosts, it contain the old hostname, change/delete it.

restart the network service.
# service network restart

Logout and then login again.


   

No comments:

Post a Comment