Local host name unknown: java.net.UnknownHostException:

在Linux下安装完resin后,每次启动都出现如下错误: 
[11:06:45.617] {watchdog-} WatchdogProcess[Watchdog[],7] starting Resin 
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: bogon: bogon 
Jul 6, 2010 11:06:46 AM com.caucho.boot.WatchdogProcess runInstance 
WARNING: WatchdogProcess[Watchdog[],7] watchdog socket timed out

原因是/etc/hosts文件里没有主机名为:bogon的,解决方法就是在hosts文件中加入bogon,修改后的hosts的文件是:

# Do not remove the following line, or various programs 
# that require network functionality will fail. 
127.0.0.1       bogon localhost.localdomain localhost 
::1     localhost6.localdomain6 localhost6

上一篇:.NET GC机制学习笔记


下一篇:Zookeeper 初体验之——伪分布式安装(转)