Configure a Hostname
-
Use the following methods to configure the hostname of a machine running Redhat Linux:
- The hostname command: hostname appviewxeval.payoda.com.
- The /etc/sysconfig/network configuration file (preferred method).
- NETWORKING=yes
- HOSTNAME=appviewxeval.payoda.com
- 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:
-
After modifying the configuration file, restart the network service to read the
/etc/init.d/network restart file.
Note: This creates a temporary or non-persistent configuration of the hostname.