aix6.1 modify the host name

#hostname //Display hostname

#uname –n //Display node name

In one machine, both function the same;

However, in a dual-machine system or a multi-machine cluster, hostname displays the external host name;

uname displays one of the node names (nodename).

 

Modify the hostname:

Temporarily effective (invalid after restart):

# hostname NEW_HOSTNAME和#uname -S NEW_HOSTNAME

Permanently effective:

smit hostname or directly use the command chdev -l inet0 -a hostname=NEW_HOSTNAME

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326350654&siteId=291194637