我们正试图在Linode Ubuntu 10.04 Lucid框中使用Passenger和Nginx来部署我们的Rails应用程序。无法在Linode Ubuntu 10.04上设置主机名Lucid Lynx
我们似乎不能从我们的Ubuntu盒子的根IPv6地址设置主机名。
我们得到的错误:
[email protected]`ourIPv6`:~# hostname -f
hostname: Name or service not known
当我hostname
键入它返回myhost
但是当我在hostname -f
键入它返回hostname: Name or service not known
什么是必要的行动,采取设置主机名?
hosts file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
97.107.128.97 plato.example.com plato
要设置主机名,只需运行'hostname new_hostname'。你想做什么? – Blender 2012-02-19 20:04:07
好的。我们会尝试。遵循此[Linode入门指南](http://library.linode.com/getting-started#sph_set-the-hostname)。只是试图部署 – 2012-02-19 20:06:09
运行指南中列出的命令。它应该工作。 – Blender 2012-02-19 20:07:06