`
关中大虾
  • 浏览: 12515 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

tomcat启动失败

阅读更多

日志报错java.net.BindException: Cannot assign requested address

it turned out the issue 
was a messed up localhost interface.  The shutdown port in tomcat binds 
explicitly to the localhost interface (127.0.0.1) so that interface 
needs to be working correctly.

然后检查回送地址localhost
ping不通
ifconfig看不到loopback
 
添加回送地址:
文件/etc/network/interfaces
正确的配置应该是

 

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback


auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

 

最后重启服务器shutdown -r now

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics