当前位置:首页 > 开发 > 操作系统 > 正文

tomcat启动失败

发表于: 2014-07-23   作者:关中大虾   来源:转载   浏览:
摘要: 日志报错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

日志报错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

tomcat启动失败

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号