luobo2ni 发表于 2017-1-18 06:28:34

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
页: [1]
查看完整版本: tomcat启动失败