ava.net.MalformedURLException: Local host name unknown: java.net.UnknownHostExce

LinuxCard 2010-12-29

ava.net.MalformedURLException: Local host name unknown: java.net.UnknownHostExce

文章分类:Java编程

在Linux下安装完resin后,每次启动都出现如下错误:

[11:06:45.617]{watchdog-}WatchdogProcess[Watchdog[],7]startingResin

Error:Exceptionthrownbytheagent:java.net.MalformedURLException:Localhostnameunknown:java.net.UnknownHostException:bogon:bogon

Jul6,201011:06:46AMcom.caucho.boot.WatchdogProcessrunInstance

WARNING:WatchdogProcess[Watchdog[],7]watchdogsockettimedout

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

#Donotremovethefollowingline,orvariousprograms

#thatrequirenetworkfunctionalitywillfail.

127.0.0.1bogonlgxzyweb104.localdomainlocalhost

::1localhost6.localdomain6localhost6

相关推荐

CloudCraft / 0评论 2015-07-06
yangliuhepanpan / 0评论 2015-07-06
iamplane / 0评论 2015-02-02