通过运行以下命令检查系统主机名
$ hostname
尝试ping到该主机名的输出。
$ ping <output of the hostname command>
如果那给出了错误,请检查
/etc/hosts文件。至少它应该具有主机条目127.0.0.1
127.0.0.1 <hostname>or <local ip> <hostname>

通过运行以下命令检查系统主机名
$ hostname
尝试ping到该主机名的输出。
$ ping <output of the hostname command>
如果那给出了错误,请检查
/etc/hosts文件。至少它应该具有主机条目127.0.0.1
127.0.0.1 <hostname>or <local ip> <hostname>