How to change the server name

When you have more than one server, it is very difficult to understand the console which are currently open. But you can change the server name.

Run with administrative rights:

# hostname newname

where newname-the new name of our machines.

BUT when you reboot your system, our new name is not saved, because it is read from the boot script. Therefore, you need to edit the/etc/sysconfig/network file, by typing the name in the variable HOSTNAME =

mcedit/etc/sysconfig/network #

The new name must only contain uppercase English letters and at least one point.