Configure the single-server hostname - Fluid Topics - 4.0

Install Fluid Topics on a Single Server

Operating system
RHEL
Category
Technical Notes
Audience
public
Version
4.0

It is possible but optional to configure the single-server hostname so that it is easier to remember.

Retrieve a server hostname and IP address

  • Retrieve the server hostname by running the following command:

    cat /etc/sysconfig/network

    The server hostname is on the following line:

    HOSTNAME=$SERVER_HOSTNAME

  • Retrieve the server IP address by running the following command:

    As root user

    ifconfig

    Note: If necessary, install the ifconfig command as part of the net-tools package.

    The server IP address is on the following line:

    inet:$SERVER_IP_ADDRESS

Configure a server hostname and IP address

  1. Edit the following file:

    As root user

    /etc/hosts

  2. Add the following lines at the end of the file:

    127.0.0.1 localhost $SERVER_HOSTNAME $BACK_OFFICE_HOSTNAME
    $SERVER_IP_ADDRESS $SERVER_HOSTNAME