我要评分
获取效率
正确性
完整性
易理解

Configuring Host Names

  1. Run the following command on node 1 to view the host name:
    1
    hostname
    

    If the default host name is localhost, run the following commands to change the host name to distinguish nodes 1, 2, and 3:

    1
    2
    3
    hostname host-XX-XX-XX
    logout
    hostname
    
  2. Run the following command on node 2 to view the host name:
    1
    hostname
    

  3. Run the following command on node 3 to view the host name:
    1
    hostname
    

  4. Configure host names.

    Add the IP addresses and host names to the hosts file on each node (nodes 1 to 3).

    1
    vim /etc/hosts