Solaris 10 5/09 发行说明

登录问题

本节介绍登录问题。

登录错误消息

您在登录到 Java 桌面系统会话时可能看到如下错误消息:


Could not look up internet address for hostname.
This will prevent GNOME from operating correctly.
It may be possible to correct the problem by adding 
hostname to the file /etc/hosts

解决方法: 确保在 /etc/hosts 文件中正确设置了主机名。请执行以下步骤:

  1. 按如下形式在 /etc/hosts 文件中设置主机名:


    127.0.0.1 localhost loghost hostname
    localhost.localdomain

    hostname 是系统的名称。

  2. 确保主机名在 /etc/nodename 文件中列出。此文件还必须包含下面的行:


    127.0.0.1 localhost loghost hostname
    localhost.localdomain