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

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

文章分类:Java编程

在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 lgxzyweb104.localdomain localhost
::1     localhost6.localdomain6 localhost6
在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 lgxzyweb104.localdomain localhost
::1     localhost6.localdomain6 localhost6

猜你喜欢

转载自caihorse.iteye.com/blog/854599
今日推荐