Configure a Hostname
-
Use the following methods to configure the hostname of a machine running Redhat Linux:
- The
hostnamecommand:hostname appviewxeval.payoda.com.Note: This creates a temporary or non-persistent configuration of hostname. - The /
etc/sysconfig/networkconfiguration file (preferred method).
- The
-
To make the configuration persistent, you must configure it in the
/etc/sysconfig/network file. -
Open the file in an editor and change the following line:
NETWORKING=yes HOSTNAME=appviewxeval.payoda.com -
After modifying the configuration file, restart the network service to read the
/etc/init.d/network restartfile.