Linux RHEL – Change hostname

3 step for change hostname to RHEL Linux:

1. edit: /etc/hosts localhost.localdomain localhost

2. edit: /etc/sysconfig/network

3. past into kernel new hostname
echo "" > /proc/sys/kernel/hostname



Consider a restart net services /etc/init.d/network restart but is not strictly required.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.