Redhat – Change Your Hostname Without Rebooting

The first two steps to make the change permanent

vim /etc/sysconfig/network

Change to:

HOSTNAME=pippo

Second step:

vi /etc/hosts

Replace your old hostname with the new one.

This step to change the hostname immediately:

hostname pippo
This entry was posted in Redhat / CentOS. Bookmark the permalink.

Leave a Reply