Perform the following steps to configure the host information on all servers:
Run the following command on each server to configure the host name of the server:
[root@hostname /]# hostnamectl set-hostname <hostname>Specify the IP address and host name of the current server in the
/etc/hostsconfiguration file.[root@hostname /]# vi /etc/hostsRun the following command to obtain the IP address of the current host:
[root@hostname /]# hostname -i