码迷,mamicode.com
首页 > 编程语言 > 详细

Local host name unknown: java.net.UnknownHostException:

时间:2015-05-05 18:58:55      阅读:753      评论:0      收藏:0      [点我收藏+]

标签:

在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 

Local host name unknown: java.net.UnknownHostException:

标签:

原文地址:http://www.cnblogs.com/smile361/p/4479607.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!