我們正試圖在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