平台
用于 SPARC 系统的 Solaris OS
用于 x86 系统的 Solaris OS
问题
您在登录到 Java Desktop System 会话时可能看到如下错误消息:
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 文件中设置主机名:
127.0.0.1 localhost loghost 主机名 localhost.localdomain
确保该主机名在 /etc/nodename 文件中列出。此文件还必须包含下面的行:
在 /etc/inet/ipnodes 文件中添加如下条目:
127.0.0.1 主机名
以上各行中的主机名均是指您的系统名。