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

猜你喜欢

转载自774020554.iteye.com/blog/2095266