Change hostname for your Centos 7

In order to change your system’s hostname if you are running Centos 7, follow these steps:

  1. Update the following file /etc/sysconfig/network by replacing or adding the variable HOSTNAME with the following format:
  2. After that, ensure your main server IP address (see it with hostname -i) is pointing to the new hostname by updating or replacing if needed, inside the file /etc/hosts, so you should leave it as the following example (assuming you are running with the IP address   ...
Siga leyendo →