Pages

Monday, February 7, 2011

Change hostname in Redhat Linux?

hostname "newhostname"
vi /etc/hosts => Update the entry with the newhostname
vi /etc/sysconfig/network => Change hostname entry
vi /etc/motd => If hostname entry is given here
service network restart

No comments: