Monday, November 12, 2012

How to Modify HostName RHEL OEL CentOS 6

To modify hostname on RHEL OEL CentOS 6 is simple:

1.To update on fly:


2.Write into network config file:

#vi /etc/sysconfig/network


3.Add new hostname into /etc/hosts file:

# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

No comments:

Post a Comment